diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-26 15:55:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-26 15:55:45 +0000 |
commit | b9b19931ab241f885ec375e386744b9e64038d9f (patch) | |
tree | 348d7d6a1c4d2cdf7a668e1564d12fc575ee29c1 /package/network/utils | |
parent | c3d564bd297ff7a093d16c41e3adfe5d8845bf29 (diff) | |
download | upstream-b9b19931ab241f885ec375e386744b9e64038d9f.tar.gz upstream-b9b19931ab241f885ec375e386744b9e64038d9f.tar.bz2 upstream-b9b19931ab241f885ec375e386744b9e64038d9f.zip |
comgt: fix directip auth type
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42671 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils')
-rw-r--r-- | package/network/utils/comgt/files/directip.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/utils/comgt/files/directip.sh b/package/network/utils/comgt/files/directip.sh index 2bfdf80516..b860f1ef27 100644 --- a/package/network/utils/comgt/files/directip.sh +++ b/package/network/utils/comgt/files/directip.sh @@ -56,9 +56,9 @@ proto_directip_setup() { gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1 local auth_type=0 - [ -z "$auth" ] && case $auth in + case $auth in pap) auth_type=1;; - chap) auth_type=1;; + chap) auth_type=2;; esac USE_APN="$apn" USE_USER="$username" USE_PASS="$password" USE_AUTH="$auth_type" \ |