source: packages/net/nfs-kernel-server/files/nfsd.init @ 19857

Last change on this file since 19857 was 19857, checked in by tripolar, 7 years ago

fixed another typo - hope the last one :(

  • Property svn:eol-style set to native
File size: 685 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=60
5STOP=60
6
7NFS_D=/var/lib/nfs
8LOCK_D=/var/lib/nfs/sm
9
10start() {
11        grep -q /proc/fs/nfsd /proc/mounts || \
12                mount -t nfsd nfsd /proc/fs/nfsd
13        mkdir -p $NFS_D
14        mkdir -p $LOCK_D
15        touch $NFS_D/rmtab
16
17        sysctl -w fs.nfs.nlm_tcpport=32777 fs.nfs.nlm_udpport=32777 > /dev/null
18        /usr/sbin/rpc.statd -p 32778 -o 32779
19        /usr/sbin/exportfs -r
20        /usr/sbin/rpc.nfsd
21        /usr/sbin/rpc.mountd -p 32780
22}
23
24stop() {
25        killall rpc.mountd 2> /dev/null
26        rpc.nfsd 0 2> /dev/null
27        /usr/sbin/exportfs -au
28        killall rpc.statd 2> /dev/null
29        grep -q /proc/fs/nfsd /proc/mounts && \
30                umount /proc/fs/nfsd
31}
32
33reload() {
34        /usr/sbin/exportfs -r
35}
36
Note: See TracBrowser for help on using the repository browser.