2010-04-20 12:58:29 +00:00
|
|
|
description "Mounting NFS Filesystems"
|
|
|
|
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 ( runlevel [2345] and (started nfsclient))
|
2008-05-03 17:03:02 +00:00
|
|
|
|
|
|
|
console output
|
|
|
|
|
2010-04-20 12:58:29 +00:00
|
|
|
script
|
|
|
|
source /etc/init/functions
|
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`
|
|
|
|
if [ "$FILESYSTEM" == "nfs" ]; then
|
|
|
|
mount $MOUNTPOINT
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Mount nfs Filesystem on $MOUNTPOINT"
|
2008-05-03 17:03:02 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
end script
|