summaryrefslogtreecommitdiff
path: root/etc/rc.d/mountd
blob: fb1d7cfaf8dcdab877f08ab9d79a3c69141fdbf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# $OpenBSD: mountd,v 1.2 2011/08/02 11:59:25 robert Exp $

daemon="/sbin/mountd"

. /etc/rc.d/rc.subr

rc_pre() {
	[ -s /etc/exports -a `sed -e '/^#/d' < /etc/exports | wc -l` -ne 0 ] &&
		rm -f /var/db/mountdtab && \
		echo -n > /var/db/mountdtab
}

rc_cmd $1