diff options
Diffstat (limited to 'contrib/debian/openzfs-zfs-zed.prerm')
-rw-r--r-- | contrib/debian/openzfs-zfs-zed.prerm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/debian/openzfs-zfs-zed.prerm b/contrib/debian/openzfs-zfs-zed.prerm new file mode 100644 index 000000000..b8340df53 --- /dev/null +++ b/contrib/debian/openzfs-zfs-zed.prerm @@ -0,0 +1,16 @@ +#!/bin/sh +set -e + +zedd="/usr/lib/zfs-linux/zed.d" +etcd="/etc/zfs/zed.d" + +if [ "$1" != "failed-upgrade" ] && [ -d "${etcd}" ] && [ -d "${zedd}" ] ; then + while read -r file ; do + etcfile="${etcd}/${file}" + ( [ -L "${etcfile}" ] || [ -e "${etcfile}" ] ) && continue + ln -sT /dev/null "${etcfile}" + done < "${zedd}/DEFAULT-ENABLED" +fi + +#DEBHELPER# + |