initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
noaccomp
|
||||
noccp
|
||||
nobsdcomp
|
||||
nodeflate
|
||||
novj
|
||||
novjccomp
|
||||
nopcomp
|
@@ -0,0 +1 @@
|
||||
debug
|
@@ -0,0 +1 @@
|
||||
default-asyncmap
|
@@ -0,0 +1 @@
|
||||
defaultroute
|
@@ -0,0 +1 @@
|
||||
hide-password
|
@@ -0,0 +1,2 @@
|
||||
ipcp-accept-local
|
||||
ipcp-accept-remote
|
@@ -0,0 +1 @@
|
||||
ipparam wan
|
@@ -0,0 +1,2 @@
|
||||
lcp-echo-interval 30
|
||||
lcp-echo-failure 2
|
@@ -0,0 +1 @@
|
||||
linkname pppoe
|
@@ -0,0 +1 @@
|
||||
mru 1492
|
@@ -0,0 +1 @@
|
||||
mtu 1492
|
@@ -0,0 +1 @@
|
||||
noauth
|
@@ -0,0 +1 @@
|
||||
nodetach
|
@@ -0,0 +1 @@
|
||||
noipdefault
|
@@ -0,0 +1,27 @@
|
||||
{
|
||||
my $inkernel = $pppoe{InKernel} || "no";
|
||||
my $timeout = $pppoe{Timeout} || 120; # PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
|
||||
my $device = $pppoe{PhysicalInterface} || "eth1";
|
||||
my $syncPPP = $pppoe{SynchronousPPP} || "no";
|
||||
my $syncflag = "";
|
||||
|
||||
$OUT = "";
|
||||
if ($syncPPP eq "yes")
|
||||
{
|
||||
$OUT .= "sync\n";
|
||||
$syncflag = "-s";
|
||||
}
|
||||
if ($inkernel eq "yes")
|
||||
{
|
||||
# Find Roaring Penguin pppoe plugin
|
||||
my ($plugin) = glob "/usr/lib*/pppd/*/rp-pppoe.so";
|
||||
$plugin ||= "pppoe_plugin_could_not_be_found";
|
||||
|
||||
$OUT .= "plugin $plugin\n";
|
||||
$OUT .= "$device";
|
||||
}
|
||||
else
|
||||
{
|
||||
$OUT .= "pty '/usr/sbin/pppoe -I $device -T $timeout -U -m 1412 $syncflag'";
|
||||
}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
user "{ "$DialupUserAccount" }"
|
Reference in New Issue
Block a user