- reorg of init scripts
- remove start of not needed webserver
- remove patch for fbsplash
- various cleanups
This commit is contained in:
Stephan Raue 2009-11-16 07:50:41 +01:00
parent d31e434b82
commit 81da6ca44a
6 changed files with 14 additions and 1877 deletions

View File

@ -8,4 +8,5 @@
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# Prompt environment variables. # Prompt environment variables.
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
PS1='\u@\h:\w \$ ' #PS1='\u@\h:\w \$ '
PS1="\[\033[1;31m\][\$(date +%H%M)][\u@\h:\w]$ "

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# start http daemon
#
# runlevels: openelec, text, debug
. /etc/sysconfig
# get options
test -f /etc/network || exit 1
. /etc/network
if test "$HTTP_SERVER" = "yes"; then
progress "Starting http daemon"
httpd -h /var/www >/dev/null 2>&1 &
fi
exit 0

File diff suppressed because it is too large Load Diff

View File

@ -9,20 +9,20 @@
# read config # read config
. /etc/sysconfig . /etc/sysconfig
# mounting storage
# todo
# make variable directory structure # make variable directory structure
install -m 755 -d /var/log install -m 755 -d /var/log
install -m 755 -d /var/log/gdm
install -m 755 -d /var/lock install -m 755 -d /var/lock
install -m 755 -d /var/media install -m 755 -d /var/media
install -m 1777 -d /var/run install -m 1777 -d /var/run
install -m 1777 -d /var/tmp install -m 1777 -d /var/tmp
# install -m 700 -d /var/lib/polkit-1
# starting Xorg # starting Xorg
start_xorg start_xorg
# starting Splash
# start_splash &
# copying config into storage # copying config into storage
mkdir -p $HOME/.config mkdir -p $HOME/.config
for i in `ls /usr/config`; do for i in `ls /usr/config`; do
@ -35,11 +35,13 @@
# starting debugging shell # starting debugging shell
# if test "$DEBUG" = yes; then # if test "$DEBUG" = yes; then
echo "### starting debugging shell on console 3 ###" # echo "### it seems we are running in Debug mode ###"
echo "### ...... switch with ctrl-alt-f3 ...... ###" # echo "### starting debugging shell on console 3 ###"
# echo "### ...... switch with ctrl-alt-f3 ...... ###"
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1 & exec /bin/sh </dev/tty3 >/dev/tty3 2>&1 &
# fi # fi
# getting runlevel
RUNLEVEL="openelec" RUNLEVEL="openelec"
if test "$TEXTMODE" = yes; then if test "$TEXTMODE" = yes; then
RUNLEVEL="text" RUNLEVEL="text"
@ -47,6 +49,7 @@
RUNLEVEL="configure" RUNLEVEL="configure"
fi fi
# starting init scripts for wanted runlevel
count=0 count=0
for script in /sbin/init.d/*; do for script in /sbin/init.d/*; do
grep -q -e "^# runlevels:.*$RUNLEVEL" $script && count=$(($count+1)); grep -q -e "^# runlevels:.*$RUNLEVEL" $script && count=$(($count+1));
@ -62,7 +65,7 @@
fi fi
done done
# exit $RET # when we have an problem we must look where is this problem
echo "### it seems we have an problem ###"
echo "starting emergency shell" echo "### starting emergency shell... ###"
exec /bin/sh </dev/tty3 >/dev/tty3 2>&1 exec /bin/sh </dev/tty3 >/dev/tty3 2>&1