21 lines
514 B
Plaintext
21 lines
514 B
Plaintext
|
description "Mounting NFS Filesystems"
|
||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||
|
version 1.0
|
||
|
emits none special
|
||
|
|
||
|
start on stopping nfsclient
|
||
|
|
||
|
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`
|
||
|
if [ "$FILESYSTEM" == "nfs" ]; then
|
||
|
umount $MOUNTPOINT
|
||
|
status_message "umount NFS Filesystem from $MOUNTPOINT"
|
||
|
fi
|
||
|
done
|
||
|
end script
|