util-linux: start init scripts on RUNLEVEL=boot

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-09-07 23:11:57 +02:00
parent c139293fb3
commit afb6f13517

View File

@ -23,7 +23,9 @@
#
# runlevels: openelec, textmode
(
case $RUNLEVEL in
boot)
(
INSTALLED_MEMORY=`cat /proc/meminfo | grep 'MemTotal:' | awk '{print $2}'`
SWAP=`blkid -t TYPE="swap" -o device`
SWAPFILE="$HOME/.cache/swapfile"
@ -48,4 +50,9 @@
sysctl -w vm.swappiness=60 2>&1 > /dev/null
fi
fi
)&
)&
;;
poweroff|reboot)
;;
esac