summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-04-06 02:27:02 +0000
committerpjd <pjd@FreeBSD.org>2007-04-06 02:27:02 +0000
commit4474431c34b1973b89b02a02cd54a55ea97648aa (patch)
tree4ee993e86835d9121b6e14210c1db11b2324ba9d /etc/rc.d/mountd
parent170e632d642afcedd747a3c8bdf45f63d1a36f53 (diff)
downloadFreeBSD-src-4474431c34b1973b89b02a02cd54a55ea97648aa.zip
FreeBSD-src-4474431c34b1973b89b02a02cd54a55ea97648aa.tar.gz
- Add ZFS startup script.
Submitted by: des - When starting mountd(8) and ZFS is enabled, add /etc/zfs/exports file. - Update rc.conf(5).
Diffstat (limited to 'etc/rc.d/mountd')
-rwxr-xr-xetc/rc.d/mountd5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.d/mountd b/etc/rc.d/mountd
index 4389451..5edbb85 100755
--- a/etc/rc.d/mountd
+++ b/etc/rc.d/mountd
@@ -36,6 +36,11 @@ mountd_precmd()
checkyesno weak_mountd_authentication && rc_flags="-n"
fi
fi
+
+ if checkyesno zfs_enable ; then
+ rc_flags="${rc_flags} /etc/exports /etc/zfs/exports"
+ fi
+
rm -f /var/db/mountdtab
( umask 022 ; > /var/db/mountdtab )
return 0
OpenPOWER on IntegriCloud