diff options
| author | Gerry Rozema <groz@openwrt.org> | 2006-08-18 22:37:40 +0000 |
|---|---|---|
| committer | Gerry Rozema <groz@openwrt.org> | 2006-08-18 22:37:40 +0000 |
| commit | b52f59ef248a6d0499201ffaa928d31e888f3786 (patch) | |
| tree | e84fc2670aad6a4845e0f5e2702fb674e146fe2d /openwrt | |
| parent | 43459c3f822235d48919ed612d3fdd758887bebb (diff) | |
| download | mtk-20170518-b52f59ef248a6d0499201ffaa928d31e888f3786.zip mtk-20170518-b52f59ef248a6d0499201ffaa928d31e888f3786.tar.gz mtk-20170518-b52f59ef248a6d0499201ffaa928d31e888f3786.tar.bz2 | |
Update init to use /etc/banner for presence test, remove postinit
SVN-Revision: 4604
Diffstat (limited to 'openwrt')
| -rwxr-xr-x | openwrt/target/linux/generic-2.6/files/init | 10 | ||||
| -rwxr-xr-x | openwrt/target/linux/generic-2.6/files/postinit | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/openwrt/target/linux/generic-2.6/files/init b/openwrt/target/linux/generic-2.6/files/init index eda776c..0c60acd 100755 --- a/openwrt/target/linux/generic-2.6/files/init +++ b/openwrt/target/linux/generic-2.6/files/init @@ -62,11 +62,11 @@ done COUNTER=0 while [ $COUNTER -lt 10 ]; do sleep 1 - [ -e /mnt/postinit ] && let COUNTER=10; + [ -e /mnt/etc/banner ] && let COUNTER=10; let COUNTER=COUNTER+1 done -[ -e /mnt/postinit ] || { - export FAILSAFE="No postinit" +[ -e /mnt/etc/banner ] || { + export FAILSAFE="No Openwrt FS" exec /bin/busybox init } @@ -76,5 +76,5 @@ mount -o move /proc /mnt/proc mount -o move /dev /mnt/dev mount -o move /tmp /mnt/tmp mount -o move /sys /mnt/sys - -exec switch_root -c /dev/console /mnt /postinit +mount none /tmp -t tmpfs +exec switch_root -c /dev/console /mnt /sbin/init diff --git a/openwrt/target/linux/generic-2.6/files/postinit b/openwrt/target/linux/generic-2.6/files/postinit deleted file mode 100755 index 6ae1012..0000000 --- a/openwrt/target/linux/generic-2.6/files/postinit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/ash -mount none /dev -t devfs -exec /bin/busybox init - |
