mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
17 lines
373 B
Plaintext
17 lines
373 B
Plaintext
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
zedd="/usr/lib/zfs-linux/zed.d"
|
||
|
etcd="/etc/zfs/zed.d"
|
||
|
|
||
|
if [ "$1" != "failed-upgrade" ] && [ -d "${etcd}" ] && [ -d "${zedd}" ] ; then
|
||
|
while read -r file ; do
|
||
|
etcfile="${etcd}/${file}"
|
||
|
( [ -L "${etcfile}" ] || [ -e "${etcfile}" ] ) && continue
|
||
|
ln -sT /dev/null "${etcfile}"
|
||
|
done < "${zedd}/DEFAULT-ENABLED"
|
||
|
fi
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|