Viitor_upstart/etc/init/virtualfs.conf
kueller 79b2635d46 Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_upstart@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

28 lines
760 B
Plaintext

description "Mount all Virtual Filesystems like /proc /sys /tmp.."
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on started udev
console output
script
source /etc/init/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
if [ -d $MOUNTPOINT ]; then
mount $MOUNTPOINT
status_message "Mounting $MOUNTPOINT ..."
else
echo "Mountpoint $MOUNTPOINT not existing"
fi
fi
done
end script