[openwrt] upgrade temper support to version 0.0.2

This commit is contained in:
Nico Schottelius 2020-12-03 20:17:19 +01:00
parent 5914512604
commit 9ca5f9a965
1 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,8 @@ fi
my_ip=$1; shift
temper_version=0.0.2
temper_url=https://files.pythonhosted.org/packages/7e/1b/0579fef8482660fe194099d988a8ae82b5e5843a60070520039789b26a84/temper-py-0.0.2.tar.gz
cat <<EOF | ssh -t "root@${my_ip}"
set -x
@ -19,10 +21,10 @@ 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
wget -O - ${temper_url} | tar xz temper-py-${temper_version}/temper.py
mv temper-py-0.0.1/temper.py /usr/bin
rmdir temper-py-0.0.1
mv temper-py-${temper_version}/temper.py /usr/bin
rmdir temper-py-${temper_version}
chmod a+rx /usr/bin/temper.py
if ! grep -q temper /etc/crontabs/root; then