summaryrefslogtreecommitdiff
path: root/package/comgt/files/3g.sh
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
commit79caead3e3feaee39dc067f490585e4868ce5db5 (patch)
tree7229677c5c9d39642bdb85cf89e4c25cc64f4efa /package/comgt/files/3g.sh
parent7d08b0bf47ff43552ec244dbb44d6284b081674f (diff)
downloadmtk-20170518-79caead3e3feaee39dc067f490585e4868ce5db5.zip
mtk-20170518-79caead3e3feaee39dc067f490585e4868ce5db5.tar.gz
mtk-20170518-79caead3e3feaee39dc067f490585e4868ce5db5.tar.bz2
package/comgt: only set pincode if it's supplied (closes: #7334), bump release number
SVN-Revision: 22561
Diffstat (limited to 'package/comgt/files/3g.sh')
-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 c6f8ffb..616beec 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