Skip to content

Instantly share code, notes, and snippets.

@dolanor
Last active December 11, 2015 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolanor/4677161 to your computer and use it in GitHub Desktop.
Save dolanor/4677161 to your computer and use it in GitHub Desktop.
#!/bin/bash
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
echo "Removing AMD logo from "$token
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
done
done
echo "Reboot computer to finish"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment