4 zedd
="/usr/lib/zfs-linux/zed.d"
7 if [ "$1" = "purge" ] && [ -d "$etcd" ] ; then
8 # remove the overrides created in prerm
9 find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
10 # remove any dangling symlinks to old zedlets
11 find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l
-delete
12 # clean up any empty directories
13 ( rmdir "$etcd" && rmdir "/etc/zfs" ) || true