blob: 93e8668a6a97949e8c9ec4546e5f019cd4466e9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|