summaryrefslogtreecommitdiff
path: root/package/base-files/src/init
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-16 20:00:57 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-16 20:00:57 +0100
commit7de31639b85a7b4ee855bb0bfaa124ab9ee37de4 (patch)
tree0d01a9aa08281ef563809a6e7878b285ff2324cf /package/base-files/src/init
parentdf3ea528e4d90a3b767b03a942011ba6ce0c81cf (diff)
interfaces contains wpa keys, make it non-readable for the user, optimize init and shutdown
Diffstat (limited to 'package/base-files/src/init')
-rwxr-xr-xpackage/base-files/src/init3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/base-files/src/init b/package/base-files/src/init
index af780c324..fc4ec8cb9 100755
--- a/package/base-files/src/init
+++ b/package/base-files/src/init
@@ -16,8 +16,7 @@ exec 0<>/dev/console >&0 2>&0
echo >/dev/mdev.seq
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
mdev -s
-mount -o remount,rw /
cat /etc/.rnd >/dev/urandom 2>&1
-[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;}
+[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} || mount -o remount,rw /
[ -f /etc/fstab ] && fsck -p >/dev/null ; mount -a
exec /sbin/init