summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/comgt/Makefile2
-rw-r--r--package/comgt/files/3g.sh10
2 files changed, 7 insertions, 5 deletions
diff --git a/package/comgt/Makefile b/package/comgt/Makefile
index b0a55ffec..5e36ad71c 100644
--- a/package/comgt/Makefile
+++ b/package/comgt/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=comgt
PKG_VERSION:=0.32
-PKG_RELEASE:=5
+PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/comgt
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