Skip to content

Commit

Permalink
added ttyUSB to wvidal
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanXD committed Dec 9, 2020
1 parent d3bc4d7 commit 18e6b66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shell-scripts/connection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18e6b66

Please sign in to comment.