do_modprobe nfsd
# See if our running kernel supports the NFS kernel server
- if ! [ -d /sys/module/nfsd ]; then
+ if [ -f /proc/kallsyms ] && ! grep -Eq "[[:space:]]nfsd_open([[:space:]]|$)" /proc/kallsyms; then
log_warning_msg "Not starting $DESC: no support in current kernel."
exit 0
fi