comgt: fix 3g redialling if dongle is physically reattached (#11567, #12008)

SVN-Revision: 33350
This commit is contained in:
Jo-Philipp Wich 2012-09-09 19:46:38 +00:00
parent aa2f4d4c8d
commit 56dbeb781e
2 changed files with 3 additions and 3 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:=19 PKG_RELEASE:=20
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

@ -10,8 +10,8 @@ find_3g_iface() {
config_get proto "$cfg" proto config_get proto "$cfg" proto
[ "$proto" = 3g ] || return 0 [ "$proto" = 3g ] || return 0
local dev # bypass state vars here because 00-netstate could clobber .device
config_get dev "$cfg" device local dev=$(uci_get network "$cfg" device)
if [ "${dev##*/}" = "${tty##*/}" ]; then if [ "${dev##*/}" = "${tty##*/}" ]; then
if [ "$ACTION" = add ]; then if [ "$ACTION" = add ]; then