aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-13 11:02:06 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-13 11:02:06 +0000
commite21f48c40e6b0aeef198cc16d2a31501ffb9930b (patch)
tree28e3a379cf38b3af63469c183fb9ce6e4cb5fe2e
parent83ad9fd2d58ad3df0cac12be4d34a5933c25176b (diff)
Notes
-rw-r--r--etc/rc.d/zfs7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.d/zfs b/etc/rc.d/zfs
index 093f4c6c151a..3f479cc439b2 100644
--- a/etc/rc.d/zfs
+++ b/etc/rc.d/zfs
@@ -17,16 +17,19 @@ required_modules="zfs"
zfs_start()
{
- zfs mount -a
zfs volinit
+ zfs mount -a
zfs share -a
+ if [ ! -r /etc/zfs/exports ]; then
+ touch /etc/zfs/exports
+ fi
}
zfs_stop()
{
zfs unshare -a
- zfs volfini
zfs unmount -a
+ zfs volfini
}
load_rc_config $name