diff options
author | John Crispin <blogic@openwrt.org> | 2014-09-11 12:26:41 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-09-11 12:26:41 +0000 |
commit | d8659cb48eecbe42a1e8279fef4b1525a8b65e80 (patch) | |
tree | 90246e43af3abf51fd1965a8f21a029669b147c7 | |
parent | 20c5127df3ac7fadc0eb761fdd4b225b283ec519 (diff) | |
download | upstream-d8659cb48eecbe42a1e8279fef4b1525a8b65e80.tar.gz upstream-d8659cb48eecbe42a1e8279fef4b1525a8b65e80.tar.bz2 upstream-d8659cb48eecbe42a1e8279fef4b1525a8b65e80.zip |
umbim: update to latest git
adds handling for username/password
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42466 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/network/utils/umbim/Makefile | 4 | ||||
-rwxr-xr-x | package/network/utils/umbim/files/lib/netifd/proto/mbim.sh | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/package/network/utils/umbim/Makefile b/package/network/utils/umbim/Makefile index f0868cebf8..b463a6de43 100644 --- a/package/network/utils/umbim/Makefile +++ b/package/network/utils/umbim/Makefile @@ -1,13 +1,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=umbim -PKG_VERSION:=2014-08-26 +PKG_VERSION:=2014-09-09 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://git.openwrt.org/project/umbim.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=7741d88cdfd36f0c4380f660a9ad7109df76b432 +PKG_SOURCE_VERSION:=4ae19ab4fcdd70dbfc8c303d752502f2da5a7e75 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MAINTAINER:=John Crispin <blogic@openwrt.org> diff --git a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh index c93ba331df..3cc7412e6b 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -11,6 +11,9 @@ proto_mbim_init_config() { proto_config_add_string apn proto_config_add_string pincode proto_config_add_string delay + proto_config_add_string auth + proto_config_add_string username + proto_config_add_string password } proto_mbim_setup() { @@ -19,7 +22,7 @@ proto_mbim_setup() { local ret local device apn pincode delay - json_get_vars device apn pincode delay + json_get_vars device apn pincode delay auth username password [ -n "$device" ] || { logger -p daemon.err -t "mbim[$$]" "No control device specified" @@ -40,7 +43,6 @@ proto_mbim_setup() { return 1 } - [ -n "$delay" ] && sleep "$delay" logger -p daemon.info -t "mbim[$$]" "Reading capabilities" @@ -100,7 +102,7 @@ proto_mbim_setup() { tid=$((tid + 1)) logger -p daemon.info -t "mbim[$$]" "Connect to network" - while ! umbim $DBG -n -t $tid -d $device connect "$apn"; do + while ! umbim $DBG -n -t $tid -d $device connect "$apn" "$auth" "$username" "$password"; do tid=$((tid + 1)) sleep 1; done |