Status Meldungen verfeinert. /dev/pts wird jetzt in udev.conf angelegt
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5605 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
be5e1c7753
commit
771a06b61f
@ -9,9 +9,7 @@ console output
|
|||||||
script
|
script
|
||||||
echo "running checkfs"
|
echo "running checkfs"
|
||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
if [ -f /fastboot ]; then
|
if [ ! -f /fastboot ]; then
|
||||||
echo "Fast boot, no file system check"
|
|
||||||
else
|
|
||||||
/bin/mount -n -o remount,ro /
|
/bin/mount -n -o remount,ro /
|
||||||
status_message "change / to ro ..."
|
status_message "change / to ro ..."
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
|
@ -9,9 +9,9 @@ console output
|
|||||||
|
|
||||||
script
|
script
|
||||||
if ls /etc/mactab* &>/dev/null; then
|
if ls /etc/mactab* &>/dev/null; then
|
||||||
echo "Setting up mac adresses"
|
|
||||||
for maccfg in /etc/mactab*; do
|
for maccfg in /etc/mactab*; do
|
||||||
nameif -c $maccfg >/dev/null
|
nameif -c $maccfg >/dev/null
|
||||||
done
|
done
|
||||||
|
status_message "Setup of mac adresses"
|
||||||
fi
|
fi
|
||||||
end script
|
end script
|
||||||
|
@ -8,15 +8,13 @@ start on stopped checkfs
|
|||||||
console output
|
console output
|
||||||
script
|
script
|
||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
echo -n "Remounting rootfs in rw mode..."
|
|
||||||
/bin/mount -n -o remount,rw /
|
/bin/mount -n -o remount,rw /
|
||||||
evaluate_retval
|
status_message "Remount of / to rw"
|
||||||
echo >/etc/mtab
|
echo >/etc/mtab
|
||||||
/bin/mount -f -o remount,rw /
|
/bin/mount -f -o remount,rw /
|
||||||
/bin/rm -f /fastboot /forcefsck
|
/bin/rm -f /fastboot /forcefsck
|
||||||
echo -n "Activating swap..."
|
|
||||||
/sbin/swapon -a
|
/sbin/swapon -a
|
||||||
evaluate_retval
|
status_message "Swap Aktivated"
|
||||||
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
||||||
MOUNTPOINT=$i
|
MOUNTPOINT=$i
|
||||||
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
||||||
@ -26,11 +24,11 @@ script
|
|||||||
&& [ ! "$MOUNTPOINT" == "/" ] \
|
&& [ ! "$MOUNTPOINT" == "/" ] \
|
||||||
&& [ ! "$DEVICE" == "none" ]; then
|
&& [ ! "$DEVICE" == "none" ]; then
|
||||||
if [ -d $MOUNTPOINT ]; then
|
if [ -d $MOUNTPOINT ]; then
|
||||||
echo -n "Mounting $MOUNTPOINT"
|
|
||||||
mount $MOUNTPOINT
|
mount $MOUNTPOINT
|
||||||
evaluate_retval
|
status_message "Mount of $MOUNTPOINT"
|
||||||
else
|
else
|
||||||
echo "Mountpoint $MOUNTPOINT not existing!"
|
echo -n "Mountpoint $MOUNTPOINT not existing!"
|
||||||
|
evaluate_retval
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -6,10 +6,7 @@ emits none special
|
|||||||
start on ( runlevel [12345] and (stopped routing))
|
start on ( runlevel [12345] and (stopped routing))
|
||||||
stop on (runlevel [S06] and stopping udev)
|
stop on (runlevel [S06] and stopping udev)
|
||||||
|
|
||||||
console output
|
console null
|
||||||
pre-start script
|
|
||||||
echo "Starting syslog"
|
|
||||||
end script
|
|
||||||
|
|
||||||
exec /usr/sbin/syslogd -n -m 0
|
|
||||||
respawn
|
respawn
|
||||||
|
exec /usr/sbin/syslogd -n -m 0
|
||||||
|
@ -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 [S016] and (stopping udev))
|
stop on ( runlevel [S016] and (stopping udev))
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
exec /sbin/agetty /dev/tty6 9600
|
exec /sbin/agetty /dev/tty6 9600
|
||||||
|
@ -24,14 +24,13 @@ pre-start script
|
|||||||
cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
|
cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
|
||||||
status_message "udev: Static entries copied..."
|
status_message "udev: Static entries copied..."
|
||||||
fi
|
fi
|
||||||
/bin/mkdir /dev/shm
|
/bin/mkdir -p /dev/shm
|
||||||
|
/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
|
||||||
status_message "udev: generation of /dev/shm done"
|
|
||||||
/bin/mknod /dev/null c 1 3
|
/bin/mknod /dev/null c 1 3
|
||||||
/bin/chmod 666 /dev/null
|
/bin/chmod 666 /dev/null
|
||||||
/bin/mknod /dev/console c 5 1
|
/bin/mknod /dev/console c 5 1
|
||||||
status_message "udev: permissions on /dev/shm corrected..."
|
status_message "udev prestart ready"
|
||||||
echo "udev:pre-start end with rc $?"
|
|
||||||
end script
|
end script
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
|
@ -12,11 +12,9 @@ console none
|
|||||||
script
|
script
|
||||||
source /etc/init/functions
|
source /etc/init/functions
|
||||||
|
|
||||||
echo -n "Deactivating swap..."
|
|
||||||
/sbin/swapoff -a
|
/sbin/swapoff -a
|
||||||
evaluate_retval
|
status_message "swap deaktivated..."
|
||||||
|
|
||||||
echo -n "Unmounting file systems..."
|
|
||||||
/bin/umount -a -r
|
/bin/umount -a -r
|
||||||
evaluate_retval
|
status_message "All File Systems umounted..."
|
||||||
end script
|
end script
|
||||||
|
Loading…
Reference in New Issue
Block a user