4
if [ "$1" = "prereqs" ]; then exit 0; fi
6
. /usr/share/initramfs-tools/hook-functions
8
BLACKLIST=/etc/modprobe.d/nvidia-blacklists-nouveau.conf
10
# there may be a dangling symlink
11
if [ -n "$DESTDIR" ] && [ -L "$DESTDIR$BLACKLIST" ]; then
12
rm -f "$DESTDIR$BLACKLIST"
15
if [ -f "$BLACKLIST" ]; then
16
# this will dereference the symlink
17
copy_exec "$BLACKLIST"