1 |
unnilennium |
1.1 |
diff -Nur smeserver-bandwidthd-2.0.1.2.old/root/etc/cron.d/bandwidthd_mysql_purge smeserver-bandwidthd-2.0.1.2/root/etc/cron.d/bandwidthd_mysql_purge |
2 |
|
|
--- smeserver-bandwidthd-2.0.1.2.old/root/etc/cron.d/bandwidthd_mysql_purge 2016-12-15 16:06:35.616000000 -0500 |
3 |
|
|
+++ smeserver-bandwidthd-2.0.1.2/root/etc/cron.d/bandwidthd_mysql_purge 2016-12-15 16:07:44.826000000 -0500 |
4 |
|
|
@@ -1 +1 @@ |
5 |
|
|
-5 5 * * 4 root /bin/sh /usr/share/doc/bandwidthd-2.0.1.1/phphtdocs/bd_mysql_purge.sh |mysql `/sbin/e-smith/db configuration getprop bandwidthd DbName`|grep -v 'status OK' |
6 |
|
|
+5 5 * * 4 root /bin/sh /usr/share/doc/bandwidthd-2.0.1.1/phphtdocs/bd_mysql_purge.sh |mysql `/sbin/e-smith/db configuration getprop bandwidthd DbName`|grep -vE '(Msg_text|already up to date|status OK)' |
7 |
|
|
diff -Nur smeserver-bandwidthd-2.0.1.2.old/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet smeserver-bandwidthd-2.0.1.2/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet |
8 |
|
|
--- smeserver-bandwidthd-2.0.1.2.old/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet 2016-12-15 16:06:35.618000000 -0500 |
9 |
|
|
+++ smeserver-bandwidthd-2.0.1.2/root/etc/e-smith/templates/etc/bandwidthd.conf/07subnet 2016-12-15 16:21:01.445000000 -0500 |
10 |
|
|
@@ -14,9 +14,9 @@ |
11 |
|
|
|
12 |
|
|
foreach $rec (@LocalAccess) |
13 |
|
|
{ |
14 |
|
|
- $OUT .= "subnet $rec \n" |
15 |
|
|
- unless $rec eq "127.0.0.1"; |
16 |
|
|
- |
17 |
|
|
+ next if $rec eq "127.0.0.1"; |
18 |
|
|
+ $rec= ($rec=~ /[.\d]+ [.\d]+/ )? $rec : "$rec 255.255.255.255"; |
19 |
|
|
+ $OUT .= "subnet $rec \n"; |
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
#$OUT .= "subnet $localAccess \n"; |