From 55f2843ce30b2644113e28adf9884d28bf5bd873 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 11 Sep 2020 13:23:14 +0200 Subject: [PATCH] [openwrt] add new script to configure LTE uplink --- openwrt-add-lte.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 openwrt-add-lte.sh diff --git a/openwrt-add-lte.sh b/openwrt-add-lte.sh new file mode 100644 index 0000000..5e3a2c7 --- /dev/null +++ b/openwrt-add-lte.sh @@ -0,0 +1,43 @@ +#!/bin/sh +# Based on work of Samuel Hailu, 2020-09-10 + +if [ $# -ne 2 ]; then + echo "$0 ip-address interface" + echo " ip-address: where to find the OpenWRT device" + echo " interface: which interface (eth3 for instance) is the LTE device" + exit 1 +fi + +my_ip=$1; shift +interface=$1; shift + +cat <