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:
kueller 2010-05-01 08:58:40 +00:00
parent be5e1c7753
commit 771a06b61f
7 changed files with 15 additions and 25 deletions

View File

@ -9,9 +9,7 @@ console output
script
echo "running checkfs"
source /etc/init/functions
if [ -f /fastboot ]; then
echo "Fast boot, no file system check"
else
if [ ! -f /fastboot ]; then
/bin/mount -n -o remount,ro /
status_message "change / to ro ..."
if [ $? = 0 ]; then

View File

@ -9,9 +9,9 @@ console output
script
if ls /etc/mactab* &>/dev/null; then
echo "Setting up mac adresses"
for maccfg in /etc/mactab*; do
nameif -c $maccfg >/dev/null
done
status_message "Setup of mac adresses"
fi
end script

View File

@ -8,15 +8,13 @@ start on stopped checkfs
console output
script
source /etc/init/functions
echo -n "Remounting rootfs in rw mode..."
/bin/mount -n -o remount,rw /
evaluate_retval
status_message "Remount of / to rw"
echo >/etc/mtab
/bin/mount -f -o remount,rw /
/bin/rm -f /fastboot /forcefsck
echo -n "Activating swap..."
/sbin/swapon -a
evaluate_retval
status_message "Swap Aktivated"
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
@ -26,11 +24,11 @@ script
&& [ ! "$MOUNTPOINT" == "/" ] \
&& [ ! "$DEVICE" == "none" ]; then
if [ -d $MOUNTPOINT ]; then
echo -n "Mounting $MOUNTPOINT"
mount $MOUNTPOINT
evaluate_retval
status_message "Mount of $MOUNTPOINT"
else
echo "Mountpoint $MOUNTPOINT not existing!"
echo -n "Mountpoint $MOUNTPOINT not existing!"
evaluate_retval
fi
fi
done

View File

@ -6,10 +6,7 @@ emits none special
start on ( runlevel [12345] and (stopped routing))
stop on (runlevel [S06] and stopping udev)
console output
pre-start script
echo "Starting syslog"
end script
console null
exec /usr/sbin/syslogd -n -m 0
respawn
exec /usr/sbin/syslogd -n -m 0

View File

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

View File

@ -24,14 +24,13 @@ pre-start script
cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
status_message "udev: Static entries copied..."
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
status_message "udev: generation of /dev/shm done"
/bin/mknod /dev/null c 1 3
/bin/chmod 666 /dev/null
/bin/mknod /dev/console c 5 1
status_message "udev: permissions on /dev/shm corrected..."
echo "udev:pre-start end with rc $?"
status_message "udev prestart ready"
end script
respawn

View File

@ -12,11 +12,9 @@ console none
script
source /etc/init/functions
echo -n "Deactivating swap..."
/sbin/swapoff -a
evaluate_retval
status_message "swap deaktivated..."
echo -n "Unmounting file systems..."
/bin/umount -a -r
evaluate_retval
status_message "All File Systems umounted..."
end script