blob: c0076453f2b8f2a3f9236eda1567f45d24a1054a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
3Subject: functions: avoid exit 1 which causes init scripts to fail
4
5Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
6---
7 rc.d/init.d/functions | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
Brad Bishop316dfdd2018-06-25 12:45:53 -040010Index: initscripts-9.72/rc.d/init.d/functions
11===================================================================
12--- initscripts-9.72.orig/rc.d/init.d/functions
13+++ initscripts-9.72/rc.d/init.d/functions
14@@ -686,6 +686,6 @@ if [ "$_use_systemctl" = "1" ]; then
15 fi
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016 fi
17
18-strstr "$(cat /proc/cmdline)" "rc.debug" && set -x
19+strstr "$(cat /proc/cmdline)" "rc.debug" && set -x || true
Patrick Williamsc0f7c042017-02-23 20:41:17 -060020 return 0
Brad Bishop316dfdd2018-06-25 12:45:53 -040021