]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.init
nfs-common.init: Ignore empty and commented-out fstab lines (Closes: #587329)
[nfs-utils.git] / debian / nfs-common.init
index dc93bea0846a3a13f080b793259339b26982ab19..9f5ebf5bbca87ae2e67cdd453b449e0aa9a771ce 100644 (file)
@@ -45,6 +45,11 @@ if [ -f /etc/fstab ]; then
 
     while read DEV MTPT FSTYPE OPTS REST
     do
+       case $DEV in
+           ''|\#*)
+               continue
+               ;;
+       esac
         if [ "$FSTYPE" = "nfs4" ]; then
             AUTO_NEED_IDMAPD=yes
         fi