5 ! test `uname
-s`
= "Linux" && {
6 echo `uname
-s` is
not Linux
10 case `uname
-r | cut
-d.
-f1
,2`
in
13 *) echo
"unknown kernel version"; exit
1;;
17 test
-e
"build/itc.$kms" && kmod
=build
/itc.$kms
18 test
-z
"$kmod" && test
-e
"mod/itc.$kms" && kmod
=mod/itc.$kms
21 echo
"Kernel module does not exist"
25 if ! test
-c $dev
; then
26 echo
"ITC kernel module is not running. Will try to load $kmod."
30 if ! test
-r $dev
; then
31 echo
"ITC is not readable. Will try to change mode."
35 .
/apc
-d $dev
& disown
36 echo
"apc should be running now"