blob: ffedeb74fe95e060135b1a1283e5c903716b1429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/ksh
#
# $OpenBSD: mountd,v 1.8 2018/01/11 21:09:26 rpe Exp $
daemon="/sbin/mountd"
. /etc/rc.d/rc.subr
pexp="mountd: \[priv\]"
rc_stop=NO
rc_pre() {
[[ -s /etc/exports ]] && grep -qv '^#' /etc/exports &&
rm -f /var/db/mountdtab &&
echo -n > /var/db/mountdtab
}
rc_cmd $1
|