ZTS: resilver_restart_001.ksh restore defaults
[zfs.git] / contrib / debian / openzfs-zfs-zed.postrm
blobe9aed3f4ce2bca5bb93aa65ab783a952541c99c2
1 #!/bin/sh
2 set -e
4 zedd="/usr/lib/zfs-linux/zed.d"
5 etcd="/etc/zfs/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
16 #DEBHELPER#