#!/bin/sh
set -e
# Automatically added by dh_installinit/12.10ubuntu1
if [ -x "/etc/init.d/zfs-share" ] && [ "$1" = remove ]; then
	invoke-rc.d zfs-share stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/12.10ubuntu1
if [ -x "/etc/init.d/zfs-mount" ] && [ "$1" = remove ]; then
	invoke-rc.d zfs-mount stop || exit 1
fi
# End automatically added section
# Automatically added by dh_installinit/12.10ubuntu1
if [ -x "/etc/init.d/zfs-import" ] && [ "$1" = remove ]; then
	invoke-rc.d zfs-import stop || exit 1
fi
# End automatically added section
# Automatically added by dh_systemd_start/12.10ubuntu1
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
	deb-systemd-invoke stop 'zfs-import-cache.service' 'zfs-import-scan.service' 'zfs-load-module.service' 'zfs-volume-wait.service' 'zfs-volumes.target' 'zfs.target' >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_systemd_start/12.10ubuntu1
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
	deb-systemd-invoke stop 'zfs-import-cache.service' 'zfs-import-scan.service' 'zfs-load-module.service' 'zfs-volume-wait.service' 'zfs-volumes.target' 'zfs.target' >/dev/null || true
fi
# End automatically added section
