Browse Source

fixed ROCK Net PPP for modem connects (GSM/CSD, analog ones) - CSD and GPRS

tested (as this commit shows)


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2557 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
547f684a8f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      package/base/ppp/rocknet_ppp.sh

+ 3
- 2
package/base/ppp/rocknet_ppp.sh

@ -126,7 +126,8 @@ ABORT \"BUSY\"
public_chat_init() {
chat_init_if
# don't ask and count ...
opts="`echo "$@" | sed 's/"/\\\\\\\\\\\\\"/g'`"
opts="`echo "$@" | sed -e 's/"/\\\\\\\\\\\\\"/g' \
-e 's/&/\\\\\\&/g'`"
addcode up 4 3 "echo '\"OK\" \"$opts\"' >> \$ppp_${if}_chat"
}
@ -134,6 +135,6 @@ public_chat_dial() {
chat_init_if
# don't ask and count ...
opts="`echo "$@" | sed 's/"/\\\\\\\\\\\\\"/g'`"
addcode up 4 5 "echo '\"OK\" \"$opts\"' >> \$ppp_${if}_chat"
addcode up 4 5 "echo -e '\"OK\" \"$opts\"\n\"CONNECT\" \"\"' >> \$ppp_${if}_chat"
}

Loading…
Cancel
Save