X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=rc-scripts-sh_fixes.patch;fp=rc-scripts-sh_fixes.patch;h=4827cdec2e51ce8572e423bb086a6538b4d9d324;hb=517e171abfcdc05d9eeca7b2c1571d38515a4937;hp=0000000000000000000000000000000000000000;hpb=1945eccd5e8738855f275d47629b4474a8b31d0c;p=packages%2Frc-scripts.git diff --git a/rc-scripts-sh_fixes.patch b/rc-scripts-sh_fixes.patch new file mode 100644 index 0000000..4827cde --- /dev/null +++ b/rc-scripts-sh_fixes.patch @@ -0,0 +1,12 @@ +diff -ur rc-scripts-0.4.11.orig/rc.d/rc.sysinit rc-scripts-0.4.11/rc.d/rc.sysinit +--- rc-scripts-0.4.11.orig/rc.d/rc.sysinit 2014-03-02 10:02:29.000000000 +0000 ++++ rc-scripts-0.4.11/rc.d/rc.sysinit 2014-05-11 15:06:33.166000019 +0000 +@@ -927,7 +927,7 @@ + . /etc/rc.d/rc.serial + fi + +- if [ -n "$PANIC_REBOOT_TIME" -a "$PANIC_REBOOT_TIME" -gt "0" -a -f /proc/sys/kernel/panic ]; then ++ if [ -n "$PANIC_REBOOT_TIME" ] && [ "$PANIC_REBOOT_TIME" -gt "0" ] && [ -f /proc/sys/kernel/panic ]; then + show 'Setting %s seconds for kernel reboot after panic' "$PANIC_REBOOT_TIME"; busy + # DEPRECATED: use /etc/sysctl.conf or kernel commandline instead + if sysctl -q -w kernel.panic=$PANIC_REBOOT_TIME; then ok; else fail; fi