b3b56d609a
/usr/share/examples/pppd. Update pppd(8) documentation to reflect this, usr.sbin/pppd/pppd.8. Remove the out-of-place pppd(8) configuration files in etc/ppp, ppp.shells.sample and ppp.deny. Make the appropriate changes to the build process, etc/Makefile and etc/mtree/BSD.usr.mtree, so it all works. The files from etc/ppp, ppp.shells.sample and ppp.deny, were moved with a repo copy. Note it in the logs with a forced commit to these two. Submitted by: Maxim Konovalov <maxim@macomnet.ru> provided the new samples.
34 lines
455 B
Bash
34 lines
455 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Example for chat.sh file.
|
|
|
|
INIT='at&f'
|
|
|
|
dial(){
|
|
/usr/bin/chat -v \
|
|
ABORT "ERROR" \
|
|
ABORT "NO DIALTONE" \
|
|
TIMEOUT 5 \
|
|
"" "AT" \
|
|
"OK" "${INIT}" \
|
|
"OK"-"+++"-"" "ATH" \
|
|
ABORT "BUSY" \
|
|
ABORT "NO ANSWER" \
|
|
ABORT "NO CARRIER" \
|
|
"OK" "ATDP$1" \
|
|
TIMEOUT 70 \
|
|
"ogin:" "username" \
|
|
"word:" "pasword" \
|
|
TIMEOUT 50 \
|
|
"PPP" "\c"
|
|
|
|
[ $? -eq 0 ] && exit 0
|
|
|
|
echo "$1 failed" 1>&2
|
|
exit 1
|
|
}
|
|
|
|
dial 1234567
|