--- rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch 2013/02/02 16:59:10 1.3 +++ rpms/e-smith-base/sme8/e-smith-base-5.2.0-pppoeMlimit.patch 2013/02/05 05:29:24 1.4 @@ -1,7 +1,7 @@ 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 --- 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/root/etc/e-smith/templates/var/service/wan/run.pppoe.conf/mlimit 2013-01-31 01:23:21.000000000 +0000 -@@ -1,5 +1,14 @@ +@@ -1,5 +1,15 @@ { -# memory limit to catch any memory leak before it kills the system - my $mlimit = $pppoe{Mlimit} || '25000000'; @@ -13,6 +13,7 @@ diff -ruN e-smith-base-5.2.0.old/root/et + if (defined $pppoe{Mlimit} && $pppoe{Mlimit} < MIN_MEMORY_LIMIT) + { + $DB->get_prop_and_delete('pppoe','Mlimit'); ++ delete $pppoe{Mlimit}; + } + + $OUT = "PPPD_MLIMIT=";