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:08:59 +02:00
parent 18a4b9e055
commit dd1f73885f
2 changed files with 22 additions and 10 deletions

View File

@ -23,6 +23,12 @@
#
# runlevels: openelec, textmode
case $RUNLEVEL in
boot)
progress "set cpu's to full power"
cpupower frequency-set -g performance > /dev/null 2>&1
;;
poweroff|reboot)
;;
esac

View File

@ -23,6 +23,8 @@
#
# runlevels: openelec, textmode
case $RUNLEVEL in
boot)
(
progress "loading kernel modules"
@ -31,5 +33,9 @@
for module in `cat /etc/modules|grep "^[^#]"`; do
eval "modprobe $module" >/dev/null 2>&1
done
)&
;;
poweroff|reboot)
;;
esac