Viitor_upstart/etc/init/mountnfs.conf

21 lines
545 B
Plaintext
Raw Normal View History

description "Mounting NFS Filesystems"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on ( runlevel [2345] and (started 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
mount $MOUNTPOINT
status_message "Mount nfs Filesystem on $MOUNTPOINT"
fi
done
end script