Compare commits
No commits in common. "4dad666f7a94eade203469b99618812feb04bf3f" and "7d1e2f6e2a80d6c41236bb2d1ded71637c595307" have entirely different histories.
4dad666f7a
...
7d1e2f6e2a
@ -10,10 +10,6 @@ console output
|
|||||||
script
|
script
|
||||||
echo "Starting checkvar script"
|
echo "Starting checkvar script"
|
||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
mount -o remount,rw /
|
|
||||||
rm /etc/mtab
|
|
||||||
touch /etc/mtab
|
|
||||||
mount -o remount,ro /
|
|
||||||
mount -t proc none /proc
|
mount -t proc none /proc
|
||||||
status_message "/proc mounted"
|
status_message "/proc mounted"
|
||||||
if mount|grep /dev/root|grep nfs &>/dev/null; then
|
if mount|grep /dev/root|grep nfs &>/dev/null; then
|
||||||
|
@ -4,15 +4,12 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on (runlevel [2345] and (started ifup))
|
start on (runlevel [2345] and (started ifup))
|
||||||
stop on runlevel [016]
|
stop on runlevel [S016]
|
||||||
|
|
||||||
console output
|
console output
|
||||||
|
|
||||||
pre-start script
|
post-start script
|
||||||
dbus-uuidgen --ensure
|
dbus-uuidgen --ensure
|
||||||
if [ -f /var/run/dbus/system_bus_socket ]; then
|
|
||||||
rm /var/run/dbus/system_bus_socket
|
|
||||||
fi
|
|
||||||
end script
|
end script
|
||||||
|
|
||||||
script
|
script
|
||||||
|
@ -3,7 +3,7 @@ author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|||||||
version 1.0
|
version 1.0
|
||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [12345] and ( started udev ))
|
start on ( runlevel [12345] and ( started udev )
|
||||||
|
|
||||||
pre-start script
|
pre-start script
|
||||||
echo "Loading additional modules"
|
echo "Loading additional modules"
|
||||||
|
@ -10,38 +10,25 @@ script
|
|||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
/bin/mount -n -o remount,rw /
|
/bin/mount -n -o remount,rw /
|
||||||
status_message "Remount of / to rw"
|
status_message "Remount of / to rw"
|
||||||
|
echo >/etc/mtab
|
||||||
|
/bin/mount -f -o remount,rw /
|
||||||
/bin/rm -f /fastboot /forcefsck
|
/bin/rm -f /fastboot /forcefsck
|
||||||
/sbin/swapon -a
|
/sbin/swapon -a
|
||||||
status_message "Swap Aktivated"
|
status_message "Swap Aktivated"
|
||||||
POINTS=`sed -e "/^#/d" -e "/^$/d" /etc/fstab|\
|
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
||||||
awk '{if ( ( $2 != "/" ) && \
|
MOUNTPOINT=$i
|
||||||
( $3 != "swap" ) && \
|
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
||||||
( $3 != "nfs" ) ) print $2 }'`
|
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
|
||||||
Do_Mount=1
|
if [ ! "$FILESYSTEM" == "nfs" ] \
|
||||||
FOUND=0
|
&& [ ! "$FILESYSTEM" == "swap" ] \
|
||||||
MP_DEPTH=1
|
&& [ ! "$MOUNTPOINT" == "/" ] \
|
||||||
while [ $Do_Mount -eq 1 ]; do
|
&& [ ! "$DEVICE" == "none" ]; then
|
||||||
for i in $POINTS; do
|
if [ -d $MOUNTPOINT ]; then
|
||||||
DEPTH=`echo $i|awk -F"/" '{print NF-1}'`
|
mount $MOUNTPOINT
|
||||||
if [ $DEPTH == $MP_DEPTH ]; then
|
status_message "Mount of $MOUNTPOINT"
|
||||||
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
|
else
|
||||||
FOUND=0
|
echo -n "Mountpoint $MOUNTPOINT not existing!"
|
||||||
(( MP_DEPTH++ ))
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
/sbin/ldconfig
|
|
||||||
if [ -f /var/run/utmp ]; then
|
|
||||||
cp /dev/null /var/run/utmp
|
|
||||||
fi
|
|
||||||
end script
|
end script
|
||||||
|
@ -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
|
|
@ -15,24 +15,26 @@ script
|
|||||||
sed -e "/^#/d" /etc/sysconfig/net/gateways | \
|
sed -e "/^#/d" /etc/sysconfig/net/gateways | \
|
||||||
sed -e "/^ *$/d" >/tmp/gateways
|
sed -e "/^ *$/d" >/tmp/gateways
|
||||||
exec 3</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
|
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"
|
status_message "Device route to $NETWORK with $NETMASK on $GW"
|
||||||
fi
|
fi
|
||||||
if [ "$OPTION" == "gw" ]; then
|
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"
|
status_message "Net Route to $NETWORK with $NETMASK and gw $GW"
|
||||||
fi
|
fi
|
||||||
|
read <&3 TYPE NETWORK OPTION GW NETMASK
|
||||||
done
|
done
|
||||||
exec 3>&-
|
exec 3>&-
|
||||||
rm /tmp/gateways
|
rm /tmp/gateways
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/sysconfig/net/defaultrouter ]; then
|
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`"
|
status_message "Default Router set to `cat /etc/sysconfig/net/defaultrouter`"
|
||||||
fi
|
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
|
if [ $NUMIF -gt 2 ]; then
|
||||||
echo "1" >/proc/sys/net/ipv4/ip_forward
|
echo "1" >/proc/sys/net/ipv4/ip_forward
|
||||||
status_message "Enable of ip_forwarding"
|
status_message "Enable of ip_forwarding"
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [12345] and (stopped routing))
|
start on ( runlevel [12345] and (stopped routing))
|
||||||
stop on (runlevel [06] and stopping udev)
|
stop on (runlevel [S06] and stopping udev)
|
||||||
|
|
||||||
console none
|
console none
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [2345] and ( started udev ))
|
start on ( runlevel [2345] and ( started udev ))
|
||||||
stop on ( runlevel [016] and ( stopping udev ))
|
stop on ( runlevel [S016] and ( stopping udev ))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty2 9600
|
exec /sbin/agetty /dev/tty2 9600
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [2345] and (started udev))
|
start on ( runlevel [2345] and (started udev))
|
||||||
stop on ( runlevel [016] and (stopping udev))
|
stop on ( runlevel [S016] and (stopping udev))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty3 9600
|
exec /sbin/agetty /dev/tty3 9600
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [2345] and (started udev))
|
start on ( runlevel [2345] and (started udev))
|
||||||
stop on ( runlevel [016] and (stopping udev))
|
stop on ( runlevel [S016] and (stopping udev))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty4 9600
|
exec /sbin/agetty /dev/tty4 9600
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [2345] and (started udev))
|
start on ( runlevel [2345] and (started udev))
|
||||||
stop on ( runlevel [016] and (stopping udev))
|
stop on ( runlevel [S016] and (stopping udev))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty5 9600
|
exec /sbin/agetty /dev/tty5 9600
|
||||||
|
@ -4,7 +4,7 @@ version 1.0
|
|||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( runlevel [2345] and (started udev))
|
start on ( runlevel [2345] and (started udev))
|
||||||
stop on ( runlevel [016] and (stopping udev))
|
stop on ( runlevel [S016] and (stopping udev))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty6 9600
|
exec /sbin/agetty /dev/tty6 9600
|
||||||
|
@ -27,13 +27,9 @@ pre-start script
|
|||||||
/bin/mkdir -p /dev/shm
|
/bin/mkdir -p /dev/shm
|
||||||
/bin/mkdir -p /dev/pts
|
/bin/mkdir -p /dev/pts
|
||||||
/bin/mount -n -t tmpfs -o mode=1755 none /dev/shm
|
/bin/mount -n -t tmpfs -o mode=1755 none /dev/shm
|
||||||
if [ ! -c /dev/null ]; then
|
|
||||||
/bin/mknod /dev/null c 1 3
|
/bin/mknod /dev/null c 1 3
|
||||||
fi
|
|
||||||
/bin/chmod 666 /dev/null
|
/bin/chmod 666 /dev/null
|
||||||
if [ ! -c /dev/console ]; then
|
|
||||||
/bin/mknod /dev/console c 5 1
|
/bin/mknod /dev/console c 5 1
|
||||||
fi
|
|
||||||
status_message "udev prestart ready"
|
status_message "udev prestart ready"
|
||||||
end script
|
end script
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|||||||
version 1.0
|
version 1.0
|
||||||
emits none special
|
emits none special
|
||||||
|
|
||||||
start on ( (runlevel [06]) and ( stopping udev ))
|
start on ( runlevel [06] and ( stopping udev )
|
||||||
|
|
||||||
pre-start script
|
pre-start script
|
||||||
echo "unload all modules"
|
echo "unload all modules"
|
||||||
|
Loading…
Reference in New Issue
Block a user