mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
16 lines
352 B
Bash
16 lines
352 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# pcsensor wrapper for Solaris
|
||
|
|
||
|
# libusb_detach_kernel_driver does not seem to work on Solaris.
|
||
|
# Thus, it looks necessary to unload hid driver manually.
|
||
|
|
||
|
hiddriver=/kernel/drv/amd64/hid
|
||
|
moduleid=$( modinfo | awk '$6 == "hid" { print $1 }' )
|
||
|
|
||
|
cd "$( dirname "$0" )" || exit 1
|
||
|
|
||
|
modunload -i "$moduleid"
|
||
|
./pcsensor "$@"
|
||
|
modload "$hiddriver"
|