diff options
Diffstat (limited to 'etc/init.d/zfs.lsb.in')
-rw-r--r-- | etc/init.d/zfs.lsb.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/init.d/zfs.lsb.in b/etc/init.d/zfs.lsb.in index 3d042065d..0d0ffb4c4 100644 --- a/etc/init.d/zfs.lsb.in +++ b/etc/init.d/zfs.lsb.in @@ -36,6 +36,11 @@ ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache" [ -x "$ZPOOL" ] || exit 1 [ -x "$ZFS" ] || exit 2 +if [ -z "$init" ]; then + # Not interactive + grep -Eqi 'zfs=off|zfs=no' /proc/cmdline && exit 3 +fi + start() { [ -f "$LOCKFILE" ] && return 3 |