diff --git a/openwrt/openwrt-add-qmi-lte.sh b/openwrt/openwrt-add-qmi-lte.sh index ecd0023..0a232b1 100755 --- a/openwrt/openwrt-add-qmi-lte.sh +++ b/openwrt/openwrt-add-qmi-lte.sh @@ -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' diff --git a/openwrt/viirb-get-openwrt-firmware.sh b/openwrt/viirb-get-openwrt-firmware.sh deleted file mode 100755 index 1682f7b..0000000 --- a/openwrt/viirb-get-openwrt-firmware.sh +++ /dev/null @@ -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} diff --git a/openwrt/viirb1-2-together.sh b/openwrt/viirb1-2-together.sh deleted file mode 100644 index e1a4206..0000000 --- a/openwrt/viirb1-2-together.sh +++ /dev/null @@ -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"