SHOW:
|
|
- or go back to the newest paste.
1 | # In a terminal type this: | |
2 | ||
3 | nano fixwatermark.sh | |
4 | ||
5 | # Paste the following into it: | |
6 | ||
7 | # fixwatermark.sh | |
8 | # another version from | |
9 | # http://forums.opensuse.org/english/get-technical-help-here/hardware/466737-ati-radeonhd-6310m-opensuse-11-4-asus-k43u-seris-laptop.html#post2396712 | |
10 | - | #!/bin/sh |
10 | + | # thanx opensuse forum. |
11 | - | DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so |
11 | + | |
12 | - | for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do |
12 | + | |
13 | - | sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER |
13 | + | |
14 | #!/bin/bash | |
15 | DRIVER=$(find /usr/lib*/xorg/modules/drivers -name "fglrx_drv.so" | head -1) | |
16 | SEDCMD=$(objdump -d $DRIVER | awk '/call/&&/EnableLogo/ {printf "s|\\x%s\\x%s\\x%s\\x%s\\x%s|\\x90\\x90\\x90\\x90\\x90|;", $2, $3, $4, $5, $6}') | |
17 | cp $DRIVER{,.org} | |
18 | sed -i "$SEDCMD" ${DRIVER} | |
19 | done | |
20 | ||
21 | # to here | |
22 | ||
23 | # exit and type | |
24 | ||
25 | chmod +x fixwatermark.sh | |
26 | - | # Log out and back in. Ta da! |
26 | + | |
27 | # Then type | |
28 | ||
29 | sudo sh fixwatermark.sh | |
30 | ||
31 | # Log out and back in. Ta da! | |
32 | ||
33 |