Viitor_upstart/etc/init/virtualfs
kueller 061ddf553e IN neuer Upstart version liegen die Scripte unter init, und nicht mehr
unter event.d



git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5503 504e572c-2e33-0410-9681-be2bf7408885
2010-04-20 12:47:00 +00:00

28 lines
832 B
Plaintext

# rcS - runlevel compatibility
#
# This task runs the old sysv-rc startup scripts.
start on stopped udevstart
#stop on runlevel
# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
# without information so that it defaults to previous=N runlevel=S.
console output
script
source /etc/event.d/functions
/bin/mount -n -o remount,rw /
status_message "Changing state of rootfs to rw"
echo >/dev/mtab
/bin/mount -f -o remount,rw /
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
MOUNTPOINT=$i
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
if [ "$DEVICE" == "none" ]; then
mount $MOUNTPOINT
status_message "Mounting $MOUNTPOINT ..."
fi
done
end script