[openwrt] update for temper support
This commit is contained in:
parent
fe52cd53bd
commit
41deb6b501
1 changed files with 24 additions and 2 deletions
|
@ -1,10 +1,32 @@
|
|||
#!/bin/sh
|
||||
|
||||
opkg install kmod-usb-hid
|
||||
opkg install python3-pyserial
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "$0 ip-address"
|
||||
echo " ip-address: where to find the OpenWRT device"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
my_ip=$1; shift
|
||||
|
||||
|
||||
|
||||
cat <<EOF | ssh -t "root@${my_ip}"
|
||||
set -x
|
||||
|
||||
opkg update
|
||||
|
||||
opkg install libustream-openssl ca-bundle ca-certificates
|
||||
opkg install kmod-usb-hid python3-pyserial
|
||||
|
||||
|
||||
wget -O - https://files.pythonhosted.org/packages/cc/bb/2f676fdf64be88de068938be2193f091e76c53d277277e07f6153223cdda/temper-py-0.0.1.tar.gz | tar xz temper-py-0.0.1/temper.py
|
||||
|
||||
mv temper-py-0.0.1/temper.py /usr/bin
|
||||
rmdir temper-py-0.0.1
|
||||
chmod a+rx /usr/bin/temper.py
|
||||
|
||||
EOF
|
||||
|
||||
exit 0
|
||||
|
||||
[ 2089.624343] hid-generic 0003:413D:2107.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 413d:2107] on usb-101c0000.ehci-1.2/input0
|
||||
|
|
Loading…
Reference in a new issue