1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 09:12:25 +02:00

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22561 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2010-08-09 16:55:56 +00:00
parent 2d8264c7ed
commit 24971136da
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -92,11 +92,13 @@ 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
test -z "$pincode" || {
PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || { PINCODE="$pincode" gcom -d "$device" -s /etc/gcom/setpin.gcom || {
echo "$config(3g): Failed to set the PIN code." echo "$config(3g): Failed to set the PIN code."
set_3g_led 0 0 0 set_3g_led 0 0 0
return 1 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
} }