mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
Add additional AT-Commands to ppp settings. (eg. for GPRS/UMTS init)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#
|
||||
|
||||
use strict;
|
||||
require 'CONFIG_ROOT/general-functions.pl';
|
||||
require '/var/ipfire/general-functions.pl';
|
||||
|
||||
my %pppsettings;
|
||||
my %modemsettings;
|
||||
@@ -56,6 +56,22 @@ if ($pppsettings{'SENDCR'} eq 'off') {
|
||||
else {
|
||||
$btfudge = ''; }
|
||||
|
||||
|
||||
my ($add_at1, $add_at2, $add_at3);
|
||||
|
||||
if ($pppsettings{'ADD_AT1'} eq '') {
|
||||
$add_at1 = 'AT'; }
|
||||
else {
|
||||
$add_at1 = $pppsettings{'ADD_AT1'}; }
|
||||
if ($pppsettings{'ADD_AT2'} eq '') {
|
||||
$add_at2 = 'AT'; }
|
||||
else {
|
||||
$add_at2 = $pppsettings{'ADD_AT2'}; }
|
||||
if ($pppsettings{'ADD_AT3'} eq '') {
|
||||
$add_at3 = 'AT'; }
|
||||
else {
|
||||
$add_at3 = $pppsettings{'ADD_AT3'}; }
|
||||
|
||||
unlink('/var/log/connect.log');
|
||||
|
||||
my $com = "/usr/sbin/chat -v -r /var/log/connect.log \
|
||||
@@ -68,6 +84,9 @@ my $com = "/usr/sbin/chat -v -r /var/log/connect.log \
|
||||
'' '$modemsettings{'INIT'}' \
|
||||
OK '$modemsettings{'HANGUP'}' \
|
||||
OK '$speaker' \
|
||||
OK '$add_at1' \
|
||||
OK '$add_at2' \
|
||||
OK '$add_at3' \
|
||||
TIMEOUT '$modemsettings{'TIMEOUT'}' \
|
||||
OK '${dial}${telephone}' \
|
||||
CONNECT '${btfudge}' ";
|
||||
|
||||
Reference in New Issue
Block a user