source: freewrt/package/nfs-server/files/nfsd.init@ 5d9f1ed

freewrt_1_0 freewrt_2_0
Last change on this file since 5d9f1ed was 5d9f1ed, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

more init script fixes

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1009 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 314 bytes
Line 
1#!/bin/sh
2
3. /etc/rc.conf
4
5case $1 in
6autostart)
7 test x"${nfsd:-NO}" = x"NO" && exit 0
8 exec $0 start
9 ;;
10start)
11 /usr/sbin/rpc.mountd -r
12 /usr/sbin/rpc.nfsd
13 ;;
14stop)
15 killall rpc.nfsd
16 killall rpc.mountd
17 ;;
18restart)
19 $0 stop
20 $0 start
21 ;;
22*)
23 echo "Usage: $0 {start | stop | restart}"
24 exit 1
25 ;;
26esac
27exit $?
Note: See TracBrowser for help on using the repository browser.