mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Revert "busybox: start init scripts on RUNLEVEL=boot"
This reverts commit 5a491d0429d617ed602debcb5dff3d51d973f7f3.
This commit is contained in:
parent
23675d8ae2
commit
78187629c4
@ -23,11 +23,5 @@
|
||||
#
|
||||
# runlevels: openelec, installer, textmode
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
progress "mounting needed filesystems"
|
||||
progress "mounting needed filesystems"
|
||||
mount -n -t ramfs none /var
|
||||
;;
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
|
@ -23,9 +23,7 @@
|
||||
#
|
||||
# runlevels: openelec, installer, textmode
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
progress "make variable directory structure"
|
||||
progress "make variable directory structure"
|
||||
mkdir -p /var/cache \
|
||||
/var/lock \
|
||||
/var/media \
|
||||
@ -49,7 +47,7 @@ case $RUNLEVEL in
|
||||
touch /var/log/wtmp
|
||||
chmod 1777 /var/log/wtmp
|
||||
|
||||
# others:
|
||||
# others:
|
||||
mkdir -p /var/lib/polkit-1
|
||||
chmod 700 /var/lib/polkit-1
|
||||
mkdir -p /var/lib/polkit-1/localauthority/10-vendor.d
|
||||
@ -60,10 +58,3 @@ case $RUNLEVEL in
|
||||
|
||||
mkdir -p /var/lib/udisks
|
||||
mkdir -p /var/lib/upower
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
@ -25,8 +25,7 @@
|
||||
TTY="3"
|
||||
|
||||
if [ "$DEBUG" = "yes" ]; then
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
|
||||
echo "###########################################"
|
||||
echo "## it seems we are running in Debug mode ##"
|
||||
echo "## starting debugging shell on console $TTY ##"
|
||||
@ -34,9 +33,5 @@ if [ "$DEBUG" = "yes" ]; then
|
||||
echo "###########################################"
|
||||
|
||||
openvt -w -c $TTY /bin/sh &
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
@ -25,16 +25,9 @@
|
||||
|
||||
OPENELEC_SETTINGS="$HOME/.xbmc/userdata/addon_data/os.openelec.settings/settings.xml"
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
if [ -f "$OPENELEC_SETTINGS" ]; then
|
||||
if [ -f "$OPENELEC_SETTINGS" ]; then
|
||||
progress "creating system settings"
|
||||
|
||||
mkdir -p /var/config
|
||||
cat "$OPENELEC_SETTINGS" | awk -F\" '{print $2"=\""$4"\""}' | sed '/^=/d' > /var/config/settings.conf
|
||||
fi
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
@ -23,9 +23,7 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
if [ -d /usr/config ]; then
|
||||
if [ -d /usr/config ]; then
|
||||
progress "copy userconfig and samples"
|
||||
|
||||
cd /usr/config
|
||||
@ -44,9 +42,4 @@ case $RUNLEVEL in
|
||||
for sample in `find . -type f -name "*.sample"`; do
|
||||
cp $sample /storage/.config/$sample
|
||||
done
|
||||
fi
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
@ -23,17 +23,10 @@
|
||||
#
|
||||
# runlevels: openelec, installer, textmode
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
(
|
||||
(
|
||||
progress "Starting Syslog daemon"
|
||||
syslogd
|
||||
|
||||
progress "Starting Kernellog daemon"
|
||||
klogd
|
||||
)&
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
)&
|
||||
|
@ -23,12 +23,5 @@
|
||||
#
|
||||
# runlevels: openelec, installer, textmode
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
progress "Setup some CDROM settings"
|
||||
progress "Setup some CDROM settings"
|
||||
sysctl -w dev.cdrom.lock=0 > /dev/null 2>&1 &
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
|
@ -24,19 +24,12 @@
|
||||
|
||||
TTY="1"
|
||||
|
||||
case $RUNLEVEL in
|
||||
boot)
|
||||
echo "###########################################"
|
||||
echo "## it seems we are running in Text mode. ##"
|
||||
echo "## .... starting shell on console $TTY .... ##"
|
||||
echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
|
||||
echo "###########################################"
|
||||
echo "###########################################"
|
||||
echo "## it seems we are running in Text mode. ##"
|
||||
echo "## .... starting shell on console $TTY .... ##"
|
||||
echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
|
||||
echo "###########################################"
|
||||
|
||||
while true; do
|
||||
while true; do
|
||||
openvt -w -c $TTY /bin/sh
|
||||
done
|
||||
;;
|
||||
|
||||
poweroff|reboot)
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user