28 lines
843 B
Plaintext
28 lines
843 B
Plaintext
![]() |
description "Mounting all Filesystem not depending on Network"
|
||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||
|
version 1.0
|
||
|
emits none special
|
||
|
|
||
|
start on stopped checkfs
|
||
|
|
||
|
console output
|
||
|
script
|
||
|
source /etc/init/functions
|
||
|
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
|
||
|
if [ -d $MOUNTPOINT ]; then
|
||
|
mount $MOUNTPOINT
|
||
|
status_message "$MOUNTPOINT mounted"
|
||
|
else
|
||
|
echo "Mountpoint $MOUNTPOINT not existing!"
|
||
|
fi
|
||
|
fi
|
||
|
done
|
||
|
end script
|