summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-02-21 21:21:47 -0800
committerStephen Hemminger <shemminger@vyatta.com>2012-02-21 21:21:47 -0800
commitd1f4cfab1acba1450a2825fcd3db68c422972c59 (patch)
tree09ecbefa7a3e690983c6c828e26c80b032925069
parent2a19ed700bfda1f396a6d5c9ed0b3bfcd5089f1b (diff)
downloadvyatta-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-xscripts/rl-system.init3
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