aboutsummaryrefslogtreecommitdiffstats
path: root/package/comgt/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2010-08-09 16:55:56 +0000
committerNicolas Thill <nico@openwrt.org>2010-08-09 16:55:56 +0000
commit8ddd70bcffb675cfa45dedf3d573c5017ac82957 (patch)
treea0dc72ee06b2a325eff9a0e3016632166d5a3b03 /package/comgt/files
parented9cacdc9ef4aee3d73cfee52622442083d95bc7 (diff)
downloadupstream-8ddd70bcffb675cfa45dedf3d573c5017ac82957.tar.gz
upstream-8ddd70bcffb675cfa45dedf3d573c5017ac82957.tar.bz2
upstream-8ddd70bcffb675cfa45dedf3d573c5017ac82957.zip
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
Diffstat (limited to 'package/comgt/files')
-rw-r--r--package/comgt/files/3g.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/comgt/files/3g.sh b/package/comgt/files/3g.sh
index c6f8ffbfc2..616beec4c4 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