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 | 16b3eae0400e4390f187edcf4b0be324cad03e96 (patch) | |
tree | 681295ca4071702cbfaf8267fc407a4df2e68986 /package/network/utils/comgt/files | |
parent | e5190a77e1f87787675f5eddd66e2d44596fe79c (diff) | |
download | mtk-20170518-16b3eae0400e4390f187edcf4b0be324cad03e96.zip mtk-20170518-16b3eae0400e4390f187edcf4b0be324cad03e96.tar.gz mtk-20170518-16b3eae0400e4390f187edcf4b0be324cad03e96.tar.bz2 |
comgt: fix directip auth type
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42671
Diffstat (limited to 'package/network/utils/comgt/files')
-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 2bfdf80..b860f1e 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" \ |