package/comgt: only set pincode if it's supplied (closes: #7334), bump release number

SVN-Revision: 22561
master
Nicolas Thill 14 years ago
parent 7d08b0bf47
commit 79caead3e3
  1. 2
      package/comgt/Makefile
  2. 10
      package/comgt/files/3g.sh

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=comgt PKG_NAME:=comgt
PKG_VERSION:=0.32 PKG_VERSION:=0.32
PKG_RELEASE:=5 PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
PKG_SOURCE_URL:=@SF/comgt PKG_SOURCE_URL:=@SF/comgt

@ -92,10 +92,12 @@ setup_interface_3g() {
fi fi
# Don't assume Option to be default as it breaks with Huawei Cards/Sticks # Don't assume Option to be default as it breaks with Huawei Cards/Sticks
PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { test -z "$pincode" || {
echo "$config(3g): Failed to set the PIN code." PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || {
set_3g_led 0 0 0 echo "$config(3g): Failed to set the PIN code."
return 1 set_3g_led 0 0 0
return 1
}
} }
test -z "$mode" || { test -z "$mode" || {
MODE="$mode" gcom -d "$device" -s /etc/gcom/setmode.gcom MODE="$mode" gcom -d "$device" -s /etc/gcom/setmode.gcom

Loading…
Cancel
Save