diff options
author | Vi0L0 | 2015-06-08 20:37:04 +0200 |
---|---|---|
committer | Vi0L0 | 2015-06-08 20:37:04 +0200 |
commit | 1bc8490b9bf240a87e621252bc12dd0a2c8b35a9 (patch) | |
tree | a766e6d1ee749dab629bff24c0b1978a149f818f /temp_links_catalyst | |
download | aur-1bc8490b9bf240a87e621252bc12dd0a2c8b35a9.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 |