diff --git a/Makefile b/Makefile index f7d6d34..49d0425 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ export DEPENDS = glibc export ARCH = x86_64 export URL = http://zfsonlinux.org/ DESC = A shim layer which adds the core interfaces required for OpenZFS -SNAPVER = 2 +SNAPVER = 3 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') diff --git a/SNAP/usher b/SNAP/usher new file mode 100755 index 0000000..f1fbfc8 --- /dev/null +++ b/SNAP/usher @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +case $1 in + preinst) + exit 0 + ;; + postinst) + if [[ ${TARGET} ]]; then + chroot ${TARGET} depmod + else + depmod + fi + ;; + prerm) + exit 0 + ;; + postrm) + exit 0 + ;; +esac