Compare commits

..

No commits in common. "4dad666f7a94eade203469b99618812feb04bf3f" and "7d1e2f6e2a80d6c41236bb2d1ded71637c595307" have entirely different histories.

14 changed files with 35 additions and 69 deletions

View File

@ -10,10 +10,6 @@ console output
script
echo "Starting checkvar script"
source /etc/init/functions
mount -o remount,rw /
rm /etc/mtab
touch /etc/mtab
mount -o remount,ro /
mount -t proc none /proc
status_message "/proc mounted"
if mount|grep /dev/root|grep nfs &>/dev/null; then

View File

@ -4,15 +4,12 @@ version 1.0
emits none special
start on (runlevel [2345] and (started ifup))
stop on runlevel [016]
stop on runlevel [S016]
console output
pre-start script
post-start script
dbus-uuidgen --ensure
if [ -f /var/run/dbus/system_bus_socket ]; then
rm /var/run/dbus/system_bus_socket
fi
end script
script

View File

@ -3,7 +3,7 @@ author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [12345] and ( started udev ))
start on ( runlevel [12345] and ( started udev )
pre-start script
echo "Loading additional modules"

View File

@ -10,38 +10,25 @@ script
source /etc/init/functions
/bin/mount -n -o remount,rw /
status_message "Remount of / to rw"
echo >/etc/mtab
/bin/mount -f -o remount,rw /
/bin/rm -f /fastboot /forcefsck
/sbin/swapon -a
status_message "Swap Aktivated"
POINTS=`sed -e "/^#/d" -e "/^$/d" /etc/fstab|\
awk '{if ( ( $2 != "/" ) && \
( $3 != "swap" ) && \
( $3 != "nfs" ) ) print $2 }'`
Do_Mount=1
FOUND=0
MP_DEPTH=1
while [ $Do_Mount -eq 1 ]; do
for i in $POINTS; do
DEPTH=`echo $i|awk -F"/" '{print NF-1}'`
if [ $DEPTH == $MP_DEPTH ]; then
if [ ! -d $i ]; then
mkdir -p $i
fi
mount $i &
status_message "Mount of $i"
FOUND=1
fi
done
wait `pgrep /bin/mount`
if [ $FOUND -eq 0 ]; then
Do_Mount=0
else
FOUND=0
(( MP_DEPTH++ ))
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
if [ ! "$FILESYSTEM" == "nfs" ] \
&& [ ! "$FILESYSTEM" == "swap" ] \
&& [ ! "$MOUNTPOINT" == "/" ] \
&& [ ! "$DEVICE" == "none" ]; then
if [ -d $MOUNTPOINT ]; then
mount $MOUNTPOINT
status_message "Mount of $MOUNTPOINT"
else
echo -n "Mountpoint $MOUNTPOINT not existing!"
fi
fi
done
/sbin/ldconfig
if [ -f /var/run/utmp ]; then
cp /dev/null /var/run/utmp
fi
end script

View File

@ -1,12 +0,0 @@
description "Startup nscd"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [12345] and (stopped routing))
stop on (runlevel [06] and stopping udev)
console none
respawn
exec /usr/sbin/nscd -f /etc/nscd.conf -d

View File

@ -15,24 +15,26 @@ script
sed -e "/^#/d" /etc/sysconfig/net/gateways | \
sed -e "/^ *$/d" >/tmp/gateways
exec 3</tmp/gateways
while read <&3 TYPE NETWORK OPTION GW NETMASK; do
read <&3 TYPE NETWORK OPTION GW NETMASK
while [ $TYPE ]; do
if [ "$OPTION" == "dev" ]; then
/sbin/route add -$TYPE $NETWORK netmask $NETMASK dev $GW
route add -$TYPE $NETWORK netmask $NETMASK dev $GW
status_message "Device route to $NETWORK with $NETMASK on $GW"
fi
if [ "$OPTION" == "gw" ]; then
/sbin/route add -$TYPE $NETWORK netmask $NETMASK gw $GW
route add -$TYPE $NETWORK netmask $NETMASK gw $GW
status_message "Net Route to $NETWORK with $NETMASK and gw $GW"
fi
read <&3 TYPE NETWORK OPTION GW NETMASK
done
exec 3>&-
rm /tmp/gateways
fi
if [ -f /etc/sysconfig/net/defaultrouter ]; then
/sbin/route add default gw `cat /etc/sysconfig/net/defaultrouter`
route add default gw `cat /etc/sysconfig/net/defaultrouter`
status_message "Default Router set to `cat /etc/sysconfig/net/defaultrouter`"
fi
NUMIF=`/sbin/ip -f inet addr show|/bin/grep inet|/bin/grep -v "host lo"|wc -l`
NUMIF=`ip -f inet addr show|grep inet|grep -v "host lo"|wc -l`
if [ $NUMIF -gt 2 ]; then
echo "1" >/proc/sys/net/ipv4/ip_forward
status_message "Enable of ip_forwarding"

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [12345] and (stopped routing))
stop on (runlevel [06] and stopping udev)
stop on (runlevel [S06] and stopping udev)
console none

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [2345] and ( started udev ))
stop on ( runlevel [016] and ( stopping udev ))
stop on ( runlevel [S016] and ( stopping udev ))
respawn
exec /sbin/agetty /dev/tty2 9600

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [2345] and (started udev))
stop on ( runlevel [016] and (stopping udev))
stop on ( runlevel [S016] and (stopping udev))
respawn
exec /sbin/agetty /dev/tty3 9600

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [2345] and (started udev))
stop on ( runlevel [016] and (stopping udev))
stop on ( runlevel [S016] and (stopping udev))
respawn
exec /sbin/agetty /dev/tty4 9600

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [2345] and (started udev))
stop on ( runlevel [016] and (stopping udev))
stop on ( runlevel [S016] and (stopping udev))
respawn
exec /sbin/agetty /dev/tty5 9600

View File

@ -4,7 +4,7 @@ version 1.0
emits none special
start on ( runlevel [2345] and (started udev))
stop on ( runlevel [016] and (stopping udev))
stop on ( runlevel [S016] and (stopping udev))
respawn
exec /sbin/agetty /dev/tty6 9600

View File

@ -27,13 +27,9 @@ pre-start script
/bin/mkdir -p /dev/shm
/bin/mkdir -p /dev/pts
/bin/mount -n -t tmpfs -o mode=1755 none /dev/shm
if [ ! -c /dev/null ]; then
/bin/mknod /dev/null c 1 3
fi
/bin/mknod /dev/null c 1 3
/bin/chmod 666 /dev/null
if [ ! -c /dev/console ]; then
/bin/mknod /dev/console c 5 1
fi
/bin/mknod /dev/console c 5 1
status_message "udev prestart ready"
end script

View File

@ -3,7 +3,7 @@ author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( (runlevel [06]) and ( stopping udev ))
start on ( runlevel [06] and ( stopping udev )
pre-start script
echo "unload all modules"