summaryrefslogtreecommitdiffstats
path: root/scripts/zfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/zfs.sh')
-rwxr-xr-xscripts/zfs.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/zfs.sh b/scripts/zfs.sh
index 4a707fabf..f44053e88 100755
--- a/scripts/zfs.sh
+++ b/scripts/zfs.sh
@@ -66,8 +66,10 @@ fi
if [ ${UNLOAD} ]; then
umount -t zfs -a
+ stack_check
unload_modules
else
+ stack_clear
check_modules || die "${ERROR}"
load_modules "$@"
wait_udev /dev/zfs 30