From: Peter Wagner <​tripolar@gmx.at> Date: Thu, 25 Feb 2010 02:28:02 +0000 (+0000) Subject: mount nfsd on /proc/fs/nfsd install sm-notify X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=da0805c4fe7628f7d66f222c684822433c9a5855;p=openwrt%2Fsvn-archive%2Fpackages.git mount nfsd on /proc/fs/nfsd install sm-notify based on a patch by Benjamin Cama SVN-Revision: 19855 --- diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index 220fd5ac0..228c245bb 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -84,6 +84,7 @@ define Package/nfs-kernel-server/install $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/sbin $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd + $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/statd/sm-notify $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/statd/statd $(1)/usr/sbin/rpc.statd $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/nfsd/nfsd $(1)/usr/sbin/rpc.nfsd $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/mountd/mountd $(1)/usr/sbin/rpc.mountd diff --git a/net/nfs-kernel-server/files/nfsd.init b/net/nfs-kernel-server/files/nfsd.init index bf658d0a1..104b0e954 100644 --- a/net/nfs-kernel-server/files/nfsd.init +++ b/net/nfs-kernel-server/files/nfsd.init @@ -8,6 +8,8 @@ NFS_D=/var/lib/nfs LOCK_D=/var/lib/nfs/sm start() { + grep -q /proc/fs/nsfd /proc/mounts || \ + mount -t nfsd nfsd /proc/fs/nfsd mkdir -p $NFS_D mkdir -p $LOCK_D touch $NFS_D/rmtab @@ -24,6 +26,8 @@ stop() { rpc.nfsd 0 2> /dev/null /usr/sbin/exportfs -au killall rpc.statd 2> /dev/null + grep -q /proc/fs/nfsd /proc/mounts && + umount /proc/fs/nfsd } reload() {