syscons - Untangle device attachement from isa?, attach to nexus? instead.
[dragonfly.git] / etc / rc.d / nfsserver
blob55a217f71320609e0286d7fde011ec95bc467350
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/nfsserver,v 1.2 2002/10/12 10:31:31 schweikh Exp $
6 # PROVIDE: nfsserver
7 # REQUIRE: NETWORKING mountcritremote
9 . /etc/rc.subr
11 name="nfsserver"
12 rcvar="nfs_server_enable"
13 start_cmd="nfsserver_start"
14 stop_cmd=":"
16 # Load nfs modules if they were not compiled into the kernel
17 nfsserver_start()
19 kldstat -m nfs || kldload -n nfs || return 1
20 return 0
23 load_rc_config $name
24 run_rc_command "$1"