busybox: dont start various init scripts in installer mode

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-03-22 20:04:47 +01:00
parent f056ffee6b
commit 902ae4a600
4 changed files with 23 additions and 21 deletions

View File

@ -38,11 +38,8 @@ progress "make variable directory structure"
touch /var/run/utmp touch /var/run/utmp
chmod 1777 /var/run/utmp chmod 1777 /var/run/utmp
progress "make runtime directory structure"
ln -sf /storage/.config/modprobe.d /run/modprobe.d
progress "make logging directory structure" progress "make logging directory structure"
if test "$DEBUG" = "yes"; then if [ ! "$RUNLEVEL" = "installer" -a "$DEBUG" = "yes" ]; then
mkdir -p $HOME/log mkdir -p $HOME/log
ln -sf $HOME/log /var/log ln -sf $HOME/log /var/log
else else
@ -52,8 +49,12 @@ progress "make logging directory structure"
touch /var/log/wtmp touch /var/log/wtmp
chmod 1777 /var/log/wtmp chmod 1777 /var/log/wtmp
progress "make variable library directory structure" if [ ! "$RUNLEVEL" = "installer" ]; then
# others: progress "make runtime directory structure"
ln -sf /storage/.config/modprobe.d /run/modprobe.d
progress "make variable library directory structure"
# others:
mkdir -p /var/lib/polkit-1 mkdir -p /var/lib/polkit-1
chmod 700 /var/lib/polkit-1 chmod 700 /var/lib/polkit-1
mkdir -p /var/lib/polkit-1/localauthority/10-vendor.d mkdir -p /var/lib/polkit-1/localauthority/10-vendor.d
@ -65,6 +66,7 @@ progress "make variable library directory structure"
mkdir -p /var/lib/udisks mkdir -p /var/lib/udisks
mkdir -p /var/lib/upower mkdir -p /var/lib/upower
progress "make caching directory structure" progress "make caching directory structure"
mkdir -p $HOME/.cache/bluetooth mkdir -p $HOME/.cache/bluetooth
ln -sf $HOME/.cache/bluetooth /var/lib/bluetooth ln -sf $HOME/.cache/bluetooth /var/lib/bluetooth
fi

View File

@ -21,7 +21,7 @@
# #
# setup cdrom settings # setup cdrom settings
# #
# runlevels: openelec, installer, textmode # runlevels: openelec, textmode
progress "Setup some CDROM settings" progress "Setup some CDROM settings"
sysctl -w dev.cdrom.lock=0 > /dev/null 2>&1 & sysctl -w dev.cdrom.lock=0 > /dev/null 2>&1 &

View File

@ -21,7 +21,7 @@
# #
# start syslog daemon # start syslog daemon
# #
# runlevels: openelec, installer, textmode # runlevels: openelec, textmode
( (
progress "Starting Syslog daemon" progress "Starting Syslog daemon"