X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5aabd845f70068fb7e9e1a31653f171581a9103a..33241d20314d929c19f9d7c3765a7971d10c9262:/package/comgt/files/3g.sh diff --git a/package/comgt/files/3g.sh b/package/comgt/files/3g.sh index c6f8ffbfc..616beec4c 100644 --- a/package/comgt/files/3g.sh +++ b/package/comgt/files/3g.sh @@ -92,10 +92,12 @@ setup_interface_3g() { fi # Don't assume Option to be default as it breaks with Huawei Cards/Sticks - PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { - echo "$config(3g): Failed to set the PIN code." - set_3g_led 0 0 0 - return 1 + test -z "$pincode" || { + PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { + echo "$config(3g): Failed to set the PIN code." + set_3g_led 0 0 0 + return 1 + } } test -z "$mode" || { MODE="$mode" gcom -d "$device" -s /etc/gcom/setmode.gcom