mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
Fix pcsensor.sh to check if hid driver is loaded
This commit is contained in:
parent
45e7e47657
commit
380f242cc1
1 changed files with 8 additions and 2 deletions
|
@ -10,6 +10,12 @@ moduleid=$( modinfo | awk '$6 == "hid" { print $1 }' )
|
||||||
|
|
||||||
cd "$( dirname "$0" )" || exit 1
|
cd "$( dirname "$0" )" || exit 1
|
||||||
|
|
||||||
|
if [ -n "$moduleid" ]; then
|
||||||
modunload -i "$moduleid"
|
modunload -i "$moduleid"
|
||||||
|
fi
|
||||||
|
|
||||||
./pcsensor "$@"
|
./pcsensor "$@"
|
||||||
|
|
||||||
|
if [ -n "$moduleid" ]; then
|
||||||
modload "$hiddriver"
|
modload "$hiddriver"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue