diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-06 02:27:02 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-06 02:27:02 +0000 |
commit | 4474431c34b1973b89b02a02cd54a55ea97648aa (patch) | |
tree | 4ee993e86835d9121b6e14210c1db11b2324ba9d /etc/rc.d/mountd | |
parent | 170e632d642afcedd747a3c8bdf45f63d1a36f53 (diff) | |
download | FreeBSD-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-x | etc/rc.d/mountd | 5 |
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 |