From: Felix Fietkau Date: Fri, 26 Sep 2014 15:55:45 +0000 (+0000) Subject: comgt: fix directip auth type X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16b3eae0400e4390f187edcf4b0be324cad03e96;p=openwrt%2Fstaging%2Flinusw.git comgt: fix directip auth type Signed-off-by: Felix Fietkau SVN-Revision: 42671 --- 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" \