+# Determine whether lockd is required
+case "$NEED_LOCKD" in
+yes|no) ;;
+*) # We must be conservative and run lockd,
+ # unless we can prove that it's not required.
+ NEED_LOCKD=yes
+ if test -f /proc/ksyms
+ then
+ grep -q lockdctl /proc/ksyms || NEED_LOCKD=no
+ fi
+ ;;
+esac
+
+# Exit if required binaries are missing.