You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
557 B

{% calculate chmod='755' %}
#!/bin/bash
blacklistfile=$1
videomodule=$2
if [[ -n $videomodule ]]
then
cat >$blacklistfile <<EOF
# This file was created by initramfs
# Do not edit this file manually
# Please use cl-setup-video to select video driver
EOF
case $videomodule in
nouveau)
echo "blacklist nvidia" >>$blacklistfile
;;
radeon)
echo "blacklist amdgpu" >>$blacklistfile
;;
nvidia)
echo "blacklist nouveau" >>$blacklistfile
;;
amdgpu)
echo "blacklist radeon" >>$blacklistfile
;;
esac
else
rm -f $blacklistfile
fi