]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Don't touch nfs if we have separate nfsfs script.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 3 Dec 2010 10:15:43 +0000 (10:15 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 3 Dec 2010 10:15:43 +0000 (10:15 +0000)
svn-id: @11928

rc.d/init.d/netfs

index 708cd62bb5563531a8ab0a754f1e96abe547f143..7bd6baab270ef05ba27aaaafd153f0f5aaddad02 100755 (executable)
 . /etc/init.d/functions
 . /etc/sysconfig/network
 
-NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
+# nfs uses own script for that
+if [ ! -f /etc/rc.d/init.d/nfsfs ]; then
+       NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
+       NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
+fi
+
 CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
 NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
 NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)
This page took 0.685278 seconds and 4 git commands to generate.