mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
linux: start init scripts on RUNLEVEL=boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
18a4b9e055
commit
dd1f73885f
@ -23,6 +23,12 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
progress "set cpu's to full power"
|
case $RUNLEVEL in
|
||||||
|
boot)
|
||||||
|
progress "set cpu's to full power"
|
||||||
|
cpupower frequency-set -g performance > /dev/null 2>&1
|
||||||
|
;;
|
||||||
|
|
||||||
cpupower frequency-set -g performance > /dev/null 2>&1
|
poweroff|reboot)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
@ -23,13 +23,19 @@
|
|||||||
#
|
#
|
||||||
# runlevels: openelec, textmode
|
# runlevels: openelec, textmode
|
||||||
|
|
||||||
(
|
case $RUNLEVEL in
|
||||||
progress "loading kernel modules"
|
boot)
|
||||||
|
(
|
||||||
|
progress "loading kernel modules"
|
||||||
|
|
||||||
IFS='
|
IFS='
|
||||||
'
|
'
|
||||||
for module in `cat /etc/modules|grep "^[^#]"`; do
|
for module in `cat /etc/modules|grep "^[^#]"`; do
|
||||||
eval "modprobe $module" >/dev/null 2>&1
|
eval "modprobe $module" >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
)&
|
||||||
|
;;
|
||||||
|
|
||||||
)&
|
poweroff|reboot)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user