projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comgt: delay 3g bringup for sierra wireless cards until the card has locked on to...
[openwrt.git]
/
package
/
comgt
/
files-netifd
/
3g.sh
diff --git
a/package/comgt/files-netifd/3g.sh
b/package/comgt/files-netifd/3g.sh
index
cbf8bd1
..
cf96435
100644
(file)
--- a/
package/comgt/files-netifd/3g.sh
+++ b/
package/comgt/files-netifd/3g.sh
@@
-50,6
+50,8
@@
proto_3g_setup() {
*) CODE=3;;
esac
export MODE="AT_OPSYS=${CODE}"
*) CODE=3;;
esac
export MODE="AT_OPSYS=${CODE}"
+ elif echo "$cardinfo" | grep -q "Sierra Wireless"; then
+ SIERRA=1
fi
if [ -n "$pincode" ]; then
fi
if [ -n "$pincode" ]; then
@@
-60,6
+62,11
@@
proto_3g_setup() {
}
fi
[ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom
}
fi
[ -n "$MODE" ] && gcom -d "$device" -s /etc/gcom/setmode.gcom
+
+ # wait for carrier to avoid firmware stability bugs
+ [ -n "$SIERRA" ] && {
+ gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1
+ }
;;
esac
;;
esac
This page took
0.02356 seconds
and
4
git commands to generate.