Files
mirror_zfs/contrib/debian/openzfs-zfs-zed.postinst
T

14 lines
291 B
Bash
Raw Normal View History

2022-10-28 03:38:45 +05:00
#!/bin/sh
set -e
zedd="/usr/lib/zfs-linux/zed.d"
etcd="/etc/zfs/zed.d"
# remove the overrides created in prerm
find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
# remove any dangling symlinks to old zedlets
find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l -delete
#DEBHELPER#