diff options
Diffstat (limited to 'etc/init.d/zfs-share.in')
-rwxr-xr-x | etc/init.d/zfs-share.in | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/etc/init.d/zfs-share.in b/etc/init.d/zfs-share.in index 2b66afe50..1b70da4d5 100755 --- a/etc/init.d/zfs-share.in +++ b/etc/init.d/zfs-share.in @@ -40,11 +40,7 @@ do_depend() do_start() { - case "$ZFS_SHARE" in - [Oo][Ff][Ff]|[Nn][Oo]|''|0) - exit 0 - ;; - esac + check_boolean "$ZFS_SHARE" || exit 0 check_module_loaded "zfs" || exit 0 @@ -53,11 +49,7 @@ do_start() do_stop() { - case "$ZFS_UNSHARE" in - [Oo][Ff][Ff]|[Nn][Oo]|''|0) - exit 0 - ;; - esac + check_boolean "$ZFS_UNSHARE" || exit 0 check_module_loaded "zfs" || exit 0 |