2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-06-03 02:54:08 +04:00
|
|
|
# $NetBSD: mountd,v 1.6 2000/06/02 22:54:11 fvdl Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: mountd
|
2000-06-03 02:54:08 +04:00
|
|
|
# REQUIRE: mountall beforemountlkm network rpcbind quota
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="mountd"
|
|
|
|
rcvar="nfs_server"
|
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
required_files="/etc/exports"
|
|
|
|
start_precmd="mountd_precmd"
|
2000-04-30 17:23:04 +04:00
|
|
|
extra_commands="reload"
|
2000-03-10 14:53:23 +03:00
|
|
|
|
|
|
|
mountd_precmd()
|
|
|
|
{
|
|
|
|
rm -f /var/db/mountdtab
|
|
|
|
echo -n > /var/db/mountdtab
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2000-04-30 17:23:04 +04:00
|
|
|
run_rc_command "$1"
|