mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-07-13 22:24:36 +02:00
Change libusb-0.1 -> libusb-1.0 to be able to build on Solaris
This commit is contained in:
parent
9eee035ff0
commit
8ccd2b1f47
5 changed files with 112 additions and 72 deletions
15
pcsensor.sh
Executable file
15
pcsensor.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue