0001-functions-avoid-exit-1-which-causes-init-scripts-to-.patch 623 B

123456789101112131415161718192021
  1. Upstream-Status: Pending
  2. Subject: functions: avoid exit 1 which causes init scripts to fail
  3. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
  4. ---
  5. rc.d/init.d/functions | 2 +-
  6. 1 file changed, 1 insertion(+), 1 deletion(-)
  7. Index: initscripts-9.72/rc.d/init.d/functions
  8. ===================================================================
  9. --- initscripts-9.72.orig/rc.d/init.d/functions
  10. +++ initscripts-9.72/rc.d/init.d/functions
  11. @@ -686,6 +686,6 @@ if [ "$_use_systemctl" = "1" ]; then
  12. fi
  13. fi
  14. -strstr "$(cat /proc/cmdline)" "rc.debug" && set -x
  15. +strstr "$(cat /proc/cmdline)" "rc.debug" && set -x || true
  16. return 0