summaryrefslogtreecommitdiff
path: root/package/base-files/src/init
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-12 21:10:52 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-12 21:10:52 +0200
commit681a668edf704bbb000a49c835b3d71fa7035d86 (patch)
tree27df7d51e37260f63812466b31369c1a144cdc45 /package/base-files/src/init
parent2d1f73d4334593134d3a47704a2614ffcae384ae (diff)
parent6c2bc15eb5c40548f6a98c37ab0b825b9c163343 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files/src/init')
-rwxr-xr-xpackage/base-files/src/init4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/src/init b/package/base-files/src/init
index a3232cb9c..c57149fe3 100755
--- a/package/base-files/src/init
+++ b/package/base-files/src/init
@@ -1,7 +1,7 @@
#!/bin/sh
echo "System initialization ..."
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-mount -t devtmpfs devtmpfs /dev > /dev/null 2>&1
+mount -t devtmpfs devtmpfs /dev >/dev/null 2>&1
mount -nt proc proc /proc
mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
[ ! -f /etc/notmpfs ] && {
@@ -12,12 +12,14 @@ mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
[ -d /dev/pts ] || mkdir /dev/pts
[ -d /dev/shm ] || mkdir /dev/shm
+mount -o nosuid,noexec -t tmpfs tmpfs /dev/shm
mount -o nosuid,noexec -t devpts devpts /dev/pts
exec 0<>/dev/console >&0 2>&0
echo >/dev/mdev.seq
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
mdev -s
cat /etc/.rnd >/dev/urandom 2>&1
+[ -x /kexecinit ] && { /kexecinit; }
[ -x /cryptinit ] && { /cryptinit; exec switch_root /mnt "/init";}
[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} || mount -o remount,rw /
[ -f /etc/fstab ] && { fsck -p >/dev/null; mount -a;}