[x86] Revert "Like the earlier mfgpt patch, the new GPIO drivers also require the...
[openwrt.git] / package / comgt / files / 3g.sh
index c6f8ffb..616beec 100644 (file)
@@ -92,10 +92,12 @@ setup_interface_3g() {
                fi
                # Don't assume Option to be default as it breaks with Huawei Cards/Sticks
 
                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
                }
                test -z "$mode" || {
                        MODE="$mode" gcom -d "$device" -s /etc/gcom/setmode.gcom
This page took 0.020231 seconds and 4 git commands to generate.