From: Andrew Tridgell Date: Mon, 4 Jun 2007 13:54:22 +0000 (+1000) Subject: ignore commented out entries in /etc/exports X-Git-Tag: tevent-0.9.20~348^2~2568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd81cc521d668bb86a7dedf6dcb9e175952942e5;p=thirdparty%2Fsamba.git ignore commented out entries in /etc/exports (This used to be ctdb commit d316b49ba46e819359f045adfd87da92860fd1b5) --- diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index d0e892622e8..23fdb088826 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -14,7 +14,7 @@ case $cmd in mkdir -p /etc/ctdb/state/nfs # wait for all nfs exported directories to become available - nfs_dirs=`cut -d' ' -f1 /etc/exports` + nfs_dirs=`grep -v '^#' < /etc/exports | cut -d' ' -f1` ctdb_wait_directories "NFS" $nfs_dirs service nfs start