ath(4): Really unbreak MODULES_WITH_WORLD building.
[dragonfly.git] / etc / rc.d / nfsserver
bloba7068fa9c4c4bc02406874a25113e60101322f6b
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/nfsserver,v 1.2 2002/10/12 10:31:31 schweikh Exp $
4 # $DragonFly: src/etc/rc.d/nfsserver,v 1.4 2005/11/19 21:47:32 swildner Exp $
7 # PROVIDE: nfsserver
8 # REQUIRE: NETWORKING mountcritremote
10 . /etc/rc.subr
12 name="nfsserver"
13 rcvar="nfs_server_enable"
14 start_cmd="nfsserver_start"
15 stop_cmd=":"
17 # Load nfs modules if they were not compiled into the kernel
18 nfsserver_start()
20 if ! sysctl vfs.nfs >/dev/null 2>&1; then
21 if ! kldload nfs; then
22 warn 'Could not load NFS module'
23 return 1
26 return 0
29 load_rc_config $name
30 run_rc_command "$1"