cleanup openwrt dir

This commit is contained in:
Nico Schottelius 2020-12-29 11:39:26 +01:00
parent b0be0cc7eb
commit e0623f7938
3 changed files with 16 additions and 30 deletions

View file

@ -20,12 +20,14 @@ opkg install libustream-openssl ca-bundle ca-certificates
# Install needed kernel module
opkg install kmod-usb-net-qmi-wwan uqmi luci-proto-qmi
# opkg install usb-modeswitch kmod-mii kmod-usb-net
# Create interface
# uci set network.LTE=interface
# uci set network.lte=interface
# uci set network.LTE.ifname='${interface}'
# uci set network.LTE.proto='dhcp'
# uci set network.lte.proto='qmi'
# add to correct firewall zone
# current_networks=\$(uci get firewall.@zone[1].network)
@ -42,3 +44,15 @@ uci commit
reboot
EOF
exit 0
config interface 'lte'
option proto 'qmi'
option device '/dev/cdc-wdm0'
option apn 'internet'
option auth 'both'
option modes 'lte'
option pdptype 'ipv4'
option username 'any'
option password 'any'

View file

@ -1,14 +0,0 @@
#!/bin/sh
# 2020-10-08, Nico Schottelius
# See https://ungleich.ch/u/products/viirb-ipv6-box/
if [ $# -ne 1 ]; then
echo "$0 openwrt-version"
echo " openwrt-version: for instance 19.07.4"
exit 1
fi
version=$1
filename=openwrt-${version}-ramips-mt76x8-vocore2-squashfs-sysupgrade.bin
wget -c http://downloads.openwrt.org/releases/${version}/targets/ramips/mt76x8/${filename}

View file

@ -1,14 +0,0 @@
#!/bin/sh
if [ $# -ne 1 ]; then
echo "$0 viirb-id"
echo " viirb-id: number in decimal format"
exit 1
fi
id=$1; shift
./viirb-1-connect-flash-latest-openwrt.sh eth0 192.168.61.1
# reboot may take longer / rewriting the flash
sleep 120
./viirb-2-configure-fully-after-upgrade.sh 192.168.61.1 "$id"