treewide: fix shellscript syntax errors/typos
[openwrt/openwrt.git] / package / network / utils / comgt / files / 3g.sh
index 968662675b42e4204af3813191ad55717c2727b5..0d02d4c4b989de24ebbe336749cc88373cf21eec 100644 (file)
@@ -31,6 +31,8 @@ proto_3g_setup() {
        json_get_var dialnumber dialnumber
 
        [ -n "$dat_device" ] && device=$dat_device
+
+       device="$(readlink -f $device)"
        [ -e "$device" ] || {
                proto_set_available "$interface" 0
                return 1
@@ -96,6 +98,7 @@ proto_3g_setup() {
                novj \
                nobsdcomp \
                noauth \
+               set EXTENDPREFIX=1 \
                lock \
                crtscts \
                115200 "$device"
@@ -106,4 +109,4 @@ proto_3g_teardown() {
        proto_kill_command "$interface"
 }
 
-[ -z "NOT_INCLUDED" ] || add_protocol 3g
+[ -z "$NOT_INCLUDED" ] || add_protocol 3g