mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-25 23:03:34 +01:00
node-red-arm keyboard patch
This commit is contained in:
9
node-red/arm/patch/nrgpio
Executable file
9
node-red/arm/patch/nrgpio
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR=$(dirname $0)
|
||||
if [[ $1 == mouse || $1 == kbd ]]
|
||||
then
|
||||
exec python3 -u $BASEDIR/nrinput.py $@
|
||||
else
|
||||
sudo python -u $BASEDIR/nrgpio.py $@
|
||||
fi
|
||||
Reference in New Issue
Block a user