summaryrefslogtreecommitdiff
path: root/package/nfs-utils/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-10 21:28:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-10 21:28:31 +0200
commit17ee2641795348e935c1046383b51c1c939a6b1a (patch)
treebffbf2ca491e51cd0d23b99ad1a7eee44341d94a /package/nfs-utils/files
parent094896b78cc365530bd62c06d05acd3fe92c1c6d (diff)
rework nfs-utils package
Diffstat (limited to 'package/nfs-utils/files')
-rw-r--r--package/nfs-utils/files/nfs-utils.postinst1
-rw-r--r--package/nfs-utils/files/nfs.init3
-rw-r--r--package/nfs-utils/files/nfsd.init3
3 files changed, 4 insertions, 3 deletions
diff --git a/package/nfs-utils/files/nfs-utils.postinst b/package/nfs-utils/files/nfs-utils.postinst
index 28b2a12b3..3cd85b088 100644
--- a/package/nfs-utils/files/nfs-utils.postinst
+++ b/package/nfs-utils/files/nfs-utils.postinst
@@ -1,6 +1,5 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf nfs NO
add_service nfs 2049/tcp
add_service nfs 2049/udp
gid=$(get_next_gid)
diff --git a/package/nfs-utils/files/nfs.init b/package/nfs-utils/files/nfs.init
index 1b74ae209..9fe9ce375 100644
--- a/package/nfs-utils/files/nfs.init
+++ b/package/nfs-utils/files/nfs.init
@@ -1,6 +1,7 @@
#!/bin/sh
#PKG nfs-utils-client
#INIT 60
+. /etc/rc.conf
case $1 in
autostop) ;;
@@ -18,7 +19,7 @@ start)
mount -a -t nfs
fi
else
- logger -t nfs -s "No nfs support in kernel"
+ logger -s "No nfs support in kernel"
fi
;;
stop)
diff --git a/package/nfs-utils/files/nfsd.init b/package/nfs-utils/files/nfsd.init
index e5c8e9531..2699b9dc3 100644
--- a/package/nfs-utils/files/nfsd.init
+++ b/package/nfs-utils/files/nfsd.init
@@ -18,8 +18,9 @@ start)
touch /var/lib/nfs/xtab
touch /var/lib/nfs/sm
chown nfs:nfs /var/lib/nfs/sm
- /usr/sbin/nfsd
+ /usr/sbin/nfsd 4
/usr/sbin/mountd
+ exportfs -a
if [ ${nfs_server_version} -eq 4 ];then
mkdir -p /var/lib/nfs/rpc_pipefs
mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs