diff options
author | Vi0L0 | 2015-06-08 20:49:00 +0200 |
---|---|---|
committer | Vi0L0 | 2015-06-08 20:49:00 +0200 |
commit | f21a19f33a6159ee32a78f674490f08bcbb4d76a (patch) | |
tree | 7b87b0bd995f33843b8c4ce1c08c5e650bd52b3d /temp_links_catalyst | |
download | aur-f21a19f33a6159ee32a78f674490f08bcbb4d76a.tar.gz |
Initial import
Diffstat (limited to 'temp_links_catalyst')
-rw-r--r-- | temp_links_catalyst | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/temp_links_catalyst b/temp_links_catalyst new file mode 100644 index 000000000000..93e8668a6a97 --- /dev/null +++ b/temp_links_catalyst @@ -0,0 +1,38 @@ +#!/bin/bash + +# temp files should be places on the ramdisk, feel free to change their paths +_tempamdpcsdb=/dev/shm/amdpcsdb.current +_tempatiapfxx=/dev/shm/atiapfxx.blb.current + +start_links(){ +if [ ! -e /etc/ati/amdpcsdb.current ]; then + if [ -e /etc/ati/amdpcsdb ]; then + cp /etc/ati/amdpcsdb /etc/ati/amdpcsdb.current + else + cp /etc/ati/amdpcsdb.default /etc/ati/amdpcsdb.current + fi +fi + +if [ ! -e /etc/ati/atiapfxx.blb.current ]; then + cp /etc/ati/atiapfxx.blb /etc/ati/atiapfxx.blb.current +fi + +cp /etc/ati/amdpcsdb.current ${_tempamdpcsdb} +cp /etc/ati/atiapfxx.blb.current ${_tempatiapfxx} +ln -sf ${_tempamdpcsdb} /etc/ati/amdpcsdb +ln -sf ${_tempatiapfxx} /etc/ati/atiapfxx.blb +} + +stop_links(){ +cp ${_tempamdpcsdb} /etc/ati/amdpcsdb.current +cp ${_tempatiapfxx} /etc/ati/atiapfxx.blb.current +} + +case "$1" in + start) + start_links + ;; + stop) + stop_links + ;; +esac
\ No newline at end of file |