Imported Debian patch 1.2.0-4.1 debian/1%1.2.0-4.1
authorBen Hutchings <ben@decadent.org.uk>
Wed, 16 Dec 2009 22:14:01 +0000 (22:14 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 14 Jul 2010 02:05:22 +0000 (03:05 +0100)
debian/changelog
debian/nfs-kernel-server.init

index 6ae86aa..0e50294 100644 (file)
@@ -1,3 +1,10 @@
+nfs-utils (1:1.2.0-4.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix test for NFS kernel server support in init script; closes: #550153
+
+ -- Ben Hutchings <ben@decadent.org.uk>  Wed, 16 Dec 2009 22:14:01 +0000
+
 nfs-utils (1:1.2.0-4) unstable; urgency=low
 
   * Removing myself from uploaders.
index 2f675be..4b04fe2 100644 (file)
@@ -64,7 +64,7 @@ case "$1" in
                do_modprobe nfsd
 
                # See if our running kernel supports the NFS kernel server
-               if [ -f /proc/kallsyms ] && ! grep -qE 'init_nf(sd|     )' /proc/kallsyms; then
+               if ! [ -d /sys/module/nfsd ]; then
                        log_warning_msg "Not starting $DESC: no support in current kernel."
                        exit 0
                fi