Browse Source

comgt: fix directip auth type

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 42671
Felix Fietkau 11 years ago
parent
commit
16b3eae040
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/network/utils/comgt/files/directip.sh

+ 2 - 2
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" \