1#!/bin/sh 2set -e 3 4zedd="/usr/lib/zfs-linux/zed.d" 5etcd="/etc/zfs/zed.d" 6 7# enable all default zedlets that are not overridden 8while read -r file ; do 9 etcfile="${etcd}/${file}" 10 [ -e "${etcfile}" ] && continue 11 ln -sfT "${zedd}/${file}" "${etcfile}" 12done < "${zedd}/DEFAULT-ENABLED" 13 14# remove the overrides created in prerm 15find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete 16# remove any dangling symlinks to old zedlets 17find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l -delete 18 19#DEBHELPER# 20 21