summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsbinitscripts/0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch
blob: 17c90029c38522b773909fdae37f3f76548aa683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Upstream-Status: Pending

Subject: functions: avoid exit 1 which causes init scripts to fail

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 rc.d/init.d/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 6850046..11223f7 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -597,6 +597,6 @@ if [ "$_use_systemctl" = "1" ]; then
 	fi
 fi
 
-strstr "$(cat /proc/cmdline)" "rc.debug" && set -x
+strstr "$(cat /proc/cmdline)" "rc.debug" && set -x || true
 return 0

-- 
2.1.0