summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-13 08:01:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-12-13 08:01:21 +0000
commit5a351509aa3f12e18cea2ab312ff7466631c8488 (patch)
tree24f61be3ce5bc77af89c545a2d14b13cb80d9611
parent2317e72d9983be83cc0bfa6a5cd6e74a4a4c9b2b (diff)
downloadmtk-20170518-5a351509aa3f12e18cea2ab312ff7466631c8488.zip
mtk-20170518-5a351509aa3f12e18cea2ab312ff7466631c8488.tar.gz
mtk-20170518-5a351509aa3f12e18cea2ab312ff7466631c8488.tar.bz2
base-files: use shutdown instead of stop when the system goes down (patch by tripolar)
SVN-Revision: 24540
-rw-r--r--package/base-files/files/etc/inittab2
-rwxr-xr-xpackage/base-files/files/etc/rc.common2
-rw-r--r--target/linux/ep93xx/base-files/etc/inittab2
-rw-r--r--target/linux/ifxmips/base-files/etc/inittab2
-rw-r--r--target/linux/mpc52xx/base-files/etc/inittab2
-rw-r--r--target/linux/mpc83xx/base-files/etc/inittab2
-rw-r--r--target/linux/omap24xx/base-files/etc/inittab2
-rw-r--r--target/linux/omap35xx/base-files/etc/inittab2
-rw-r--r--target/linux/ppc44x/base-files/etc/inittab2
-rw-r--r--target/linux/ramips/base-files/etc/inittab2
-rw-r--r--target/linux/realview/base-files/etc/inittab2
11 files changed, 11 insertions, 11 deletions
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() {
diff --git a/target/linux/ep93xx/base-files/etc/inittab b/target/linux/ep93xx/base-files/etc/inittab
index ea83e79..9f7c0ae 100644
--- a/target/linux/ep93xx/base-files/etc/inittab
+++ b/target/linux/ep93xx/base-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
ttyAM0::askfirst:/bin/ash --login
tty1::askfirst:/bin/ash --login
diff --git a/target/linux/ifxmips/base-files/etc/inittab b/target/linux/ifxmips/base-files/etc/inittab
index 7989a7f..67c36a6 100644
--- a/target/linux/ifxmips/base-files/etc/inittab
+++ b/target/linux/ifxmips/base-files/etc/inittab
@@ -1,4 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
ttyS0::askfirst:/bin/ash --login
ttyS1::askfirst:/bin/ash --login
diff --git a/target/linux/mpc52xx/base-files/etc/inittab b/target/linux/mpc52xx/base-files/etc/inittab
index 68b4331..77dd6ca 100644
--- a/target/linux/mpc52xx/base-files/etc/inittab
+++ b/target/linux/mpc52xx/base-files/etc/inittab
@@ -1,3 +1,3 @@
::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
ttyPSC0::askfirst:/bin/ash --login
diff --git a/target/linux/mpc83xx/base-files/etc/inittab b/target/linux/mpc83xx/base-files/etc/inittab
index 7989a7f..67c36a6 100644
--- a/target/linux/mpc83xx/base-files/etc/inittab
+++ b/target/linux/mpc83xx/base-files/etc/inittab
@@ -1,4 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
ttyS0::askfirst:/bin/ash --login
ttyS1::askfirst:/bin/ash --login
diff --git a/target/linux/omap24xx/base-files/etc/inittab b/target/linux/omap24xx/base-files/etc/inittab
index e39d2f1..f55b7cd 100644
--- a/target/linux/omap24xx/base-files/etc/inittab
+++ b/target/linux/omap24xx/base-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
ttyS2::askfirst:/bin/ash --login
tty1::askfirst:/bin/ash --login
diff --git a/target/linux/omap35xx/base-files/etc/inittab b/target/linux/omap35xx/base-files/etc/inittab
index 89626ec..88567b2 100644
--- a/target/linux/omap35xx/base-files/etc/inittab
+++ b/target/linux/omap35xx/base-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
ttyS1::askfirst:/bin/ash --login
diff --git a/target/linux/ppc44x/base-files/etc/inittab b/target/linux/ppc44x/base-files/etc/inittab
index 7989a7f..67c36a6 100644
--- a/target/linux/ppc44x/base-files/etc/inittab
+++ b/target/linux/ppc44x/base-files/etc/inittab
@@ -1,4 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
ttyS0::askfirst:/bin/ash --login
ttyS1::askfirst:/bin/ash --login
diff --git a/target/linux/ramips/base-files/etc/inittab b/target/linux/ramips/base-files/etc/inittab
index 7989a7f..67c36a6 100644
--- a/target/linux/ramips/base-files/etc/inittab
+++ b/target/linux/ramips/base-files/etc/inittab
@@ -1,4 +1,4 @@
::sysinit:/etc/init.d/rcS S boot
-::shutdown:/etc/init.d/rcS K stop
+::shutdown:/etc/init.d/rcS K shutdown
ttyS0::askfirst:/bin/ash --login
ttyS1::askfirst:/bin/ash --login
diff --git a/target/linux/realview/base-files/etc/inittab b/target/linux/realview/base-files/etc/inittab
index 3674d98..d9d571e 100644
--- a/target/linux/realview/base-files/etc/inittab
+++ b/target/linux/realview/base-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
ttyAMA0::askfirst:/bin/ash --login
tty1::askfirst:/bin/ash --login