2010-04-20 12:58:29 +00:00
|
|
|
description "Mounting all Filesystem not depending on Network"
|
|
|
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
|
|
|
version 1.0
|
|
|
|
emits none special
|
2008-05-03 17:03:02 +00:00
|
|
|
|
|
|
|
start on stopped checkfs
|
|
|
|
|
|
|
|
console output
|
2010-04-20 12:58:29 +00:00
|
|
|
script
|
|
|
|
source /etc/init/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
/bin/mount -n -o remount,rw /
|
2010-05-01 08:58:40 +00:00
|
|
|
status_message "Remount of / to rw"
|
2008-05-03 17:03:02 +00:00
|
|
|
echo >/etc/mtab
|
|
|
|
/bin/mount -f -o remount,rw /
|
|
|
|
/bin/rm -f /fastboot /forcefsck
|
|
|
|
/sbin/swapon -a
|
2010-05-01 08:58:40 +00:00
|
|
|
status_message "Swap Aktivated"
|
2008-05-03 17:03:02 +00:00
|
|
|
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
|
|
|
MOUNTPOINT=$i
|
|
|
|
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
|
|
|
DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab`
|
|
|
|
if [ ! "$FILESYSTEM" == "nfs" ] \
|
|
|
|
&& [ ! "$FILESYSTEM" == "swap" ] \
|
|
|
|
&& [ ! "$MOUNTPOINT" == "/" ] \
|
|
|
|
&& [ ! "$DEVICE" == "none" ]; then
|
2010-04-20 12:58:29 +00:00
|
|
|
if [ -d $MOUNTPOINT ]; then
|
|
|
|
mount $MOUNTPOINT
|
2010-05-01 08:58:40 +00:00
|
|
|
status_message "Mount of $MOUNTPOINT"
|
2010-04-20 12:58:29 +00:00
|
|
|
else
|
2010-05-01 08:58:40 +00:00
|
|
|
echo -n "Mountpoint $MOUNTPOINT not existing!"
|
2010-04-20 12:58:29 +00:00
|
|
|
fi
|
2008-05-03 17:03:02 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
end script
|