]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.init
Merge branch 'sid'
[nfs-utils.git] / debian / nfs-common.init
index 39f63f2c16ec60c009ac2237d32cf45c09dbc6fd..052de51a08593d39a179cf0987d6dcd238658bf7 100644 (file)
@@ -4,7 +4,7 @@
 # Provides:          nfs-common
 # Required-Start:    $portmap $time
 # Required-Stop:     $time
-# Default-Start:     2 3 4 5 S
+# Default-Start:     S
 # Default-Stop:      0 1 6
 # Short-Description: NFS support files common to client and server
 # Description:       NFS is a popular protocol for file sharing across
@@ -47,12 +47,16 @@ if [ -f /etc/fstab ]; then
                continue
                ;;
        esac
-        case "$OPTS" in
-
-            sec=krb5|*,sec=krb5|sec=krb5,*|*,sec=krb5i,*|sec=krb5i|*,sec=krb5i|sec=krb5i,*|*,sec=krb5i,*|sec=krb5p|*,sec=krb5p|sec=krb5p,*|*,sec=krb5p,*)
-           AUTO_NEED_GSSD=yes
-            ;;
-        esac
+       OLDIFS="$IFS"
+       IFS=","
+       for OPT in $OPTS; do
+           case "$OPT" in
+               sec=krb5|sec=krb5i|sec=krb5p)
+                   AUTO_NEED_GSSD=yes
+               ;;
+           esac
+       done
+       IFS="$OLDIFS"
     done
 
     exec 0<&9 9<&-