use shutdown instead of stop when the system goes down
use a wrapper to call stop if there is no shutdown routine
diff --git a/package/base-files/files/etc/inittab b/package/base-files/files/etc/inittab
index 58be3bc..e9de30b 100644
--- a/package/base-files/files/etc/inittab
+++ b/package/base-files/files/etc/inittab
@@ -1,5 +1,5 @@
 ::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
 tts/0::askfirst:/bin/ash --login
 ttyS0::askfirst:/bin/ash --login
 tty1::askfirst:/bin/ash --login
diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common
index 072f143..6ec88ae 100755
--- a/package/base-files/files/etc/rc.common
+++ b/package/base-files/files/etc/rc.common
@@ -30,7 +30,7 @@ boot() {
 }
 
 shutdown() {
-	return 0
+	stop
 }
 
 disable() {
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to