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
chmod 1777 /var/run/utmp
progress "make runtime directory structure"
ln -sf /storage/.config/modprobe.d /run/modprobe.d
progress "make logging directory structure"
if test "$DEBUG" = "yes"; then
if [ ! "$RUNLEVEL" = "installer" -a "$DEBUG" = "yes" ]; then
mkdir -p $HOME/log
ln -sf $HOME/log /var/log
else
@ -52,19 +49,24 @@ progress "make logging directory structure"
touch /var/log/wtmp
chmod 1777 /var/log/wtmp
progress "make variable library directory structure"
# others:
mkdir -p /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/20-org.d
mkdir -p /var/lib/polkit-1/localauthority/30-site.d
mkdir -p /var/lib/polkit-1/localauthority/50-local.d
mkdir -p /var/lib/polkit-1/localauthority/90-mandatory.d
if [ ! "$RUNLEVEL" = "installer" ]; then
progress "make runtime directory structure"
ln -sf /storage/.config/modprobe.d /run/modprobe.d
mkdir -p /var/lib/udisks
mkdir -p /var/lib/upower
progress "make variable library directory structure"
# others:
mkdir -p /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/20-org.d
mkdir -p /var/lib/polkit-1/localauthority/30-site.d
mkdir -p /var/lib/polkit-1/localauthority/50-local.d
mkdir -p /var/lib/polkit-1/localauthority/90-mandatory.d
progress "make caching directory structure"
mkdir -p $HOME/.cache/bluetooth
ln -sf $HOME/.cache/bluetooth /var/lib/bluetooth
mkdir -p /var/lib/udisks
mkdir -p /var/lib/upower
progress "make caching directory structure"
mkdir -p $HOME/.cache/bluetooth
ln -sf $HOME/.cache/bluetooth /var/lib/bluetooth
fi

View File

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

View File

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