mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-12 05:35:38 +00:00
comgt: fix directip auth type
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42671
This commit is contained in:
parent
e5190a77e1
commit
16b3eae040
@ -56,9 +56,9 @@ proto_directip_setup() {
|
|||||||
gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1
|
gcom -d "$device" -s /etc/gcom/getcarrier.gcom || return 1
|
||||||
|
|
||||||
local auth_type=0
|
local auth_type=0
|
||||||
[ -z "$auth" ] && case $auth in
|
case $auth in
|
||||||
pap) auth_type=1;;
|
pap) auth_type=1;;
|
||||||
chap) auth_type=1;;
|
chap) auth_type=2;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
USE_APN="$apn" USE_USER="$username" USE_PASS="$password" USE_AUTH="$auth_type" \
|
USE_APN="$apn" USE_USER="$username" USE_PASS="$password" USE_AUTH="$auth_type" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user