X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.init;h=052de51a08593d39a179cf0987d6dcd238658bf7;hp=39f63f2c16ec60c009ac2237d32cf45c09dbc6fd;hb=HEAD;hpb=5a33314714b11a697217ff4530bdd5773bb18519 diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 39f63f2..052de51 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -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<&-