#!/bin/sh
set -e

cat > /etc/modprobe.d/nvidia-blacklists-nouveau.conf <<EOF
blacklist nouveau
blacklist nvidiafb
EOF

update-initramfs  -u -k all