17 lines
345 B
Plaintext
17 lines
345 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}"
|
||
|
[ -e "${etcfile}" ] && continue
|
||
|
ln -s /dev/null "${etcfile}"
|
||
|
done < "${zedd}/DEFAULT-ENABLED"
|
||
|
fi
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|