projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5190a7
)
comgt: fix directip auth type
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 26 Sep 2014 15:55:45 +0000
(15:55 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 26 Sep 2014 15:55:45 +0000
(15:55 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42671
package/network/utils/comgt/files/directip.sh
patch
|
blob
|
history
diff --git
a/package/network/utils/comgt/files/directip.sh
b/package/network/utils/comgt/files/directip.sh
index 2bfdf8051662a9bd8c4cbcd2a21b1765a3e8ea16..b860f1ef2719ebf92dd7603ee3c4a30f63e44a8a 100644
(file)
--- 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" \