2000-03-10 14:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-07-26 04:11:48 +04:00
|
|
|
# $NetBSD: mountd,v 1.7 2000/07/26 00:11:49 lukem Exp $
|
2000-03-10 14:53:23 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: mountd
|
2000-07-26 04:11:48 +04:00
|
|
|
# REQUIRE: NETWORK mountall beforemountlkm 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"
|