summaryrefslogtreecommitdiff
path: root/package/nfs-utils/files/nfs_client.init
diff options
context:
space:
mode:
Diffstat (limited to 'package/nfs-utils/files/nfs_client.init')
-rw-r--r--package/nfs-utils/files/nfs_client.init34
1 files changed, 0 insertions, 34 deletions
diff --git a/package/nfs-utils/files/nfs_client.init b/package/nfs-utils/files/nfs_client.init
deleted file mode 100644
index 4f4d7d96d..000000000
--- a/package/nfs-utils/files/nfs_client.init
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#PKG nfs-utils
-#INIT 70
-. /etc/rc.conf
-
-case $1 in
-autostop) ;;
-autostart)
- test x"${rpcbind:-NO}" = x"NO" && exit 0
- test x"${nfs_client:-NO}" = x"NO" && exit 0
- test x"$nfs_client" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
- exec sh $0 start
- ;;
-start)
- mkdir -p /var/lib/nfs/rpc_pipefs
- mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
- /usr/sbin/idmapd
- /usr/sbin/gssd
- ;;
-stop)
- kill $(pgrep -f /usr/sbin/idmapd)
- kill $(pgrep -f /usr/sbin/gssd)
- umount /var/lib/nfs/rpc_pipefs
- ;;
-restart)
- sh $0 stop
- sh $0 start
- ;;
-*)
- echo "Usage: $0 {start | stop | restart}"
- exit 1
- ;;
-esac
-exit $?