package/comgt: only set pincode if it's supplied (closes: #7334), bump release number
authorNicolas Thill <nico@openwrt.org>
Mon, 9 Aug 2010 16:55:56 +0000 (16:55 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 9 Aug 2010 16:55:56 +0000 (16:55 +0000)
SVN-Revision: 22561

package/comgt/Makefile
package/comgt/files/3g.sh

index b0a55ffecf254524943485c2cc564f021ad43211..5e36ad71c2f6e002d68f40cc67479db569f15582 100644 (file)
@@ -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
index c6f8ffbfc2bc0163ae60be90b45d2eaa053fb3eb..616beec4c4d76ba9602ddeb76108ab0633e9c6a1 100644 (file)
@@ -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