Files
smeserver-base/root/etc/e-smith/templates/var/service/wan/pppoe.pppd.conf/pty
Jean-Philippe Pialasse 4e486bf182 * Wed Aug 27 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-35.sme
- improve pppoe plugin patch [SME: 13074]
- handle both EC and RSA key/cert with esmith::ssl [SME: 11772]
2025-08-27 16:10:25 -04:00

23 lines
563 B
Plaintext

{
my $inkernel = "yes"; #$pppoe{InKernel} || "yes"; # we force inkernel for performance
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")
{
#$OUT .= "$device";
}
else
{
$OUT .= "pty '/usr/sbin/pppoe -I $device -T $timeout -U -m 1412 $syncflag'";
}
}