/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch
ViewVC logotype

Diff of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by wellsi, Sat Feb 2 16:59:10 2013 UTC Revision 1.4 by wellsi, Tue Feb 5 05:29:24 2013 UTC
# Line 1  Line 1 
1  diff -ruN e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit  diff -ruN e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit
2  --- e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit     2007-01-27 01:56:31.000000000 +0000  --- e-smith-base-5.2.0.old/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit     2007-01-27 01:56:31.000000000 +0000
3  +++ e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-01-31 01:23:21.000000000 +0000  +++ e-smith-base-5.2.0/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-01-31 01:23:21.000000000 +0000
4  @@ -1,5 +1,14 @@  @@ -1,5 +1,15 @@
5   {   {
6  -# memory limit to catch any memory leak before it kills the system  -# memory limit to catch any memory leak before it kills the system
7  -    my $mlimit = $pppoe{Mlimit} || '25000000';  -    my $mlimit = $pppoe{Mlimit} || '25000000';
# Line 13  diff -ruN e-smith-base-5.2.0.old/root/et Line 13  diff -ruN e-smith-base-5.2.0.old/root/et
13  +   if (defined $pppoe{Mlimit} && $pppoe{Mlimit} < MIN_MEMORY_LIMIT)  +   if (defined $pppoe{Mlimit} && $pppoe{Mlimit} < MIN_MEMORY_LIMIT)
14  +   {  +   {
15  +      $DB->get_prop_and_delete('pppoe','Mlimit');  +      $DB->get_prop_and_delete('pppoe','Mlimit');
16    +      delete $pppoe{Mlimit};
17  +   }  +   }
18  +    +  
19  +   $OUT = "PPPD_MLIMIT=";  +   $OUT = "PPPD_MLIMIT=";


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed