- adding init script for mounting filesystem (move from /sbin/init)
- adding init script for making /var directory structure (move from /sbin/init)
- adding init script for copying userconfig (move from /sbin/init)
- start syslogd later
- start networking later
- start debugshell later
- use getty for debugshell
- start acpid daemon later
- use getty for textmode shell
This commit is contained in:
Stephan Raue 2010-03-15 18:35:21 +01:00
parent d5c03c14cd
commit f290900375
9 changed files with 40 additions and 60 deletions

View File

@ -0,0 +1,8 @@
#
# mounting needed filesystems
#
# runlevels: openelec, text
progress "mounting needed filesystems"
$IONICE mount -n -t ramfs none /var

View File

@ -0,0 +1,15 @@
#
# make variable directory structure
#
# runlevels: openelec, text
progress "make variable directory structure"
$IONICE mkdir -p /var/log \
/var/lock \
/var/media \
/var/run \
/var/tmp \
/var/run/sepermit
$IONICE chmod 1777 /var/run /var/tmp

View File

@ -0,0 +1,13 @@
#
# copying config into storage
#
# runlevels: openelec, text
progress "copying config into storage"
$IONICE mkdir -p $HOME/.config
for i in `ls /usr/config`; do
[ ! -f "$HOME/.config/$i" ] && cp -PR /usr/config/$i $HOME/.config
done

View File

@ -12,6 +12,7 @@ if [ "$DEBUG" = "yes" ]; then
echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
echo "###########################################"
exec /bin/sh </dev/tty$TTY >/dev/tty$TTY 2>&1 &
# exec /bin/sh </dev/tty$TTY >/dev/tty$TTY 2>&1 &
exec /sbin/getty -n -l /bin/sh 38400 tty$TTY &
fi

View File

@ -11,5 +11,6 @@ echo "## ...... switch with ctrl-alt-f$TTY ...... ##"
echo "###########################################"
while true; do
exec /bin/sh </dev/tty$TTY >/dev/tty$TTY 2>&1
# exec /bin/sh </dev/tty$TTY >/dev/tty$TTY 2>&1
exec /sbin/getty -n -l /bin/sh 38400 tty$TTY
done

View File

@ -3,64 +3,6 @@
# read config
. /etc/sysconfig
# Starting Splash
[ "$DEBUG" != "yes" \
-a "$TEXTMODE" != "yes" \
-a -f /usr/bin/ply-image \
-a -f /usr/share/splash/Splash.png \
] && ply-image /usr/share/splash/Splash.png &
# mounting needed filesystems
progress "mounting needed filesystems"
$IONICE mount -n -t ramfs none /var
# make variable directory structure
progress "make variable directory structure"
$IONICE mkdir -p /var/log \
/var/lock \
/var/media \
/var/run \
/var/tmp \
/var/run/sepermit
$IONICE chmod 1777 /var/run /var/tmp
# copying config into storage
progress "copying config into storage"
mkdir -p $HOME/.config
for i in `ls /usr/config`; do
[ ! -f "$HOME/.config/$i" ] && \
cp -PR /usr/config/$i $HOME/.config
done
# caching xbmc
[ "$XBMC_CACHING" = "yes" ] && cache_xbmc
# starting Udev
progress "starting Udev"
echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug
$NICE_20 udevd --daemon
$NICE_20 udevadm monitor 2>&1 >/var/log/udev.log &
$NICE_20 udevadm control --env STARTUP=1
(
$NICE_20 udevadm trigger
$NICE_20 udevadm settle --timeout=5
$NICE_20 udevadm control --env STARTUP=
)&
# starting dbus
progress "Starting D-BUS"
$IONICE mkdir -p /var/lib/dbus /var/run/dbus
dbus-daemon --system
dbus-uuidgen --ensure
# starting HAL
progress "Starting Hardware Abstraction Layer"
$IONICE mkdir -p /var/cache/hald
$IONICE mkdir -p /var/run/dbus/hald-local
$IONICE mkdir -p /var/run/dbus/hald-runner
hald --verbose=no --daemon=yes --use-syslog
# getting runlevel
RUNLEVEL="openelec"
if test "$TEXTMODE" = yes; then