From 18e6b665609ac0683aee4470150de61e7951c555 Mon Sep 17 00:00:00 2001 From: Javan Rasokat Date: Wed, 9 Dec 2020 13:00:27 +0100 Subject: [PATCH] added ttyUSB to wvidal --- shell-scripts/connection.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shell-scripts/connection.sh b/shell-scripts/connection.sh index 4bd6751..7bb59d1 100644 --- a/shell-scripts/connection.sh +++ b/shell-scripts/connection.sh @@ -87,7 +87,15 @@ elif [ "$1" = "set-apn" ] ; then APN="$2" fi + if [ -z "$3" ] ; then + echo "Warning: Missing argument ttyUSB." + ttyUSB="0" # default: 0 + else + ttyUSB="$3" + fi + export APN + export ttyUSB # Create the config for wvdial cat /etc/wvdial.conf.tmpl | envsubst > /etc/wvdial.conf else