8 LOG
="/var/log/catalyst-install.log"
14 rmmod fglrx
>/dev
/null
2>&1
15 /usr
/bin
/catalyst_build_module
"${kernel}" >/dev
/null
2>&1
16 /usr
/bin
/catalyst_build_module remove
&>> $LOG
21 stat_append
"ERROR: see ${LOG} for details"
30 if [[ -e /lib
/modules
/${kernel}/video
/fglrx.ko
]] ||
[[ -e /lib
/modules
/${kernel}/extramodules
/fglrx.ko
]]
32 test=$
(modinfo
-F description fglrx |
grep "__unv:") || stat_die
37 if [ "$test" != "__unv:$compare" ]
47 stat_append
": Loading fglrx"
62 stat_busy
"Checking fglrx"
69 stat_append
": Building fglrx "
78 stat_busy
"Unloading fglrx"
98 if [ -n "$(lsmod | grep fglrx)" ]
100 stat_busy
"Module fglrx is loaded"
103 stat_busy
"Module fglrx is not loaded"
109 echo "Usage: $0 {start|stop|restart|status}"