2010-04-20 12:58:29 +00:00
|
|
|
description "Mount all Virtual Filesystems like /proc /sys /tmp.."
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
2008-05-03 17:03:02 +00:00
|
|
|
|
2010-04-20 12:58:29 +00:00
|
|
|
start on started udev
|
2008-05-03 17:03:02 +00:00
|
|
|
|
|
|
|
console output
|
|
|
|
script
|
2010-04-20 12:58:29 +00:00
|
|
|
source /etc/init/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
/bin/mount -n -o remount,rw /
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Changing state of rootfs to rw"
|
2008-05-03 17:03:02 +00:00
|
|
|
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
|
2010-04-20 12:58:29 +00:00
|
|
|
if [ -d $MOUNTPOINT ]; then
|
|
|
|
mount $MOUNTPOINT
|
|
|
|
status_message "Mounting $MOUNTPOINT ..."
|
|
|
|
else
|
|
|
|
echo "Mountpoint $MOUNTPOINT not existing"
|
|
|
|
fi
|
2008-05-03 17:03:02 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
end script
|