xref: /freebsd/sys/contrib/openzfs/contrib/debian/openzfs-zfs-zed.postinst (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1#!/bin/sh
2set -e
3
4zedd="/usr/lib/zfs-linux/zed.d"
5etcd="/etc/zfs/zed.d"
6
7# remove the overrides created in prerm
8find "${etcd}" -maxdepth 1 -lname '/dev/null' -delete
9# remove any dangling symlinks to old zedlets
10find "${etcd}" -maxdepth 1 -lname "${zedd}/*" -xtype l  -delete
11
12#DEBHELPER#
13
14