diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-21 21:21:47 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-21 21:21:47 -0800 |
commit | d1f4cfab1acba1450a2825fcd3db68c422972c59 (patch) | |
tree | 09ecbefa7a3e690983c6c828e26c80b032925069 | |
parent | 2a19ed700bfda1f396a6d5c9ed0b3bfcd5089f1b (diff) | |
download | vyatta-cfg-system-d1f4cfab1acba1450a2825fcd3db68c422972c59.tar.gz vyatta-cfg-system-d1f4cfab1acba1450a2825fcd3db68c422972c59.zip |
Cleanup interface statistic clear files on reboot
clear interface statistics creates a file /var/run/vyatta/XXXX.stats
that is used to adjust values. Since this data is meaningless after
reboot, remove it.
-rwxr-xr-x | scripts/rl-system.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/rl-system.init b/scripts/rl-system.init index 20534897..fac5fbc1 100755 --- a/scripts/rl-system.init +++ b/scripts/rl-system.init @@ -216,6 +216,9 @@ start () { ## Clear out apt config file--it will be filled in by config load empty /etc/apt/sources.list + + # remove any interface stat clears + rm -f /var/run/vyatta/*.stats } case "$ACTION" in |