summaryrefslogtreecommitdiff
path: root/package/nfs-utils
diff options
context:
space:
mode:
Diffstat (limited to 'package/nfs-utils')
-rw-r--r--package/nfs-utils/Makefile1
-rw-r--r--package/nfs-utils/files/nfsd.init2
2 files changed, 3 insertions, 0 deletions
diff --git a/package/nfs-utils/Makefile b/package/nfs-utils/Makefile
index faec335c7..339ace1e9 100644
--- a/package/nfs-utils/Makefile
+++ b/package/nfs-utils/Makefile
@@ -23,6 +23,7 @@ PKGSD_NFS_UTILS_CLIENT:=client utilities
PKGSN_NFS_UTILS_CLIENT:=nfs-utils
PKGSD_NFS_UTILS_SERVER:=server daemons and utilities
PKGSN_NFS_UTILS_SERVER:=nfs-utils
+PKGSK_NFS_UTILS_SERVER:=nfsd
PKG_CHOICES_NFS_UTILS:= V3 V4
PKGCD_V3:= nfs version 3
diff --git a/package/nfs-utils/files/nfsd.init b/package/nfs-utils/files/nfsd.init
index 2699b9dc3..21b1a495b 100644
--- a/package/nfs-utils/files/nfsd.init
+++ b/package/nfs-utils/files/nfsd.init
@@ -17,6 +17,7 @@ start)
touch /var/lib/nfs/etab
touch /var/lib/nfs/xtab
touch /var/lib/nfs/sm
+ mount -t nfsd nfsd /proc/fs/nfsd
chown nfs:nfs /var/lib/nfs/sm
/usr/sbin/nfsd 4
/usr/sbin/mountd
@@ -30,6 +31,7 @@ start)
;;
stop)
kill $(pgrep -f /usr/sbin/mountd)
+ umount /proc/fs/nfsd
if [ ${nfs_server_version} -eq 4 ];then
kill $(pgrep -f /usr/sbin/idmapd)
kill $(pgrep -f /usr/sbin/svcgssd)