|
From: Bruce S. <bl...@us...> - 2006-10-06 15:49:29
|
Update of /cvsroot/devil-linux/build/config/etc/init.d In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv14458/config/etc/init.d Added Files: Tag: rel-1-2-patches nfs Log Message: add init.d script to mount NFS --- NEW FILE: nfs --- #!/bin/bash # # $Source: # $Revision: # $Date: # # http://www.devil-linux.org # ### BEGIN INIT INFO # Provides: nfs # Required-Start: $network $syslog $named portmap # Required-Stop: $network $syslog $named portmap # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Description: mount NFS filesystems ### END INIT INFO # settings source /etc/sysconfig/config # parameters NAME="NFS client" CONFIGNAME=nfs PARAMETER= # source function library source /etc/init.d/functions case "$1" in start) # create mount points for m in $(sed -e 's/\t/ /g' -e 's/ */ /g' /etc/fstab |grep -v '^ *#'| grep nfs| cut -d' ' -f2) do mkdir -p $m 2> /dev/null done echo -n "Mounting NFS filesystems: " /bin/mount -avt nfs,nfs4 & ;; stop) echo -n "Unmounting NFS filesystems: " /bin/umount -at nfs,nfs4 & ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac |