فهرست منبع

need to fork startup scripts, otherwise init got exit calls and reboots the system

Waldemar Brodkorb 15 سال پیش
والد
کامیت
0a56716f1e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      package/base-files/src/etc/init.d/rcS

+ 1 - 1
package/base-files/src/etc/init.d/rcS

@@ -4,7 +4,7 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 	grep '^#INIT ' /etc/init.d/* | \
 	    sort -nk2 | \
 	    while read line; do
-		/bin/sh ${line%%:*} autostart 2>&1
+		exec sh ${line%%:*} autostart 2>&1
 	    done
 	test -e /etc/init.d/boot.local && (/bin/sh /etc/init.d/boot.local) 2>&1
 } | logger -s -p 6 -t '' &