summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/config.inc8
-rw-r--r--etc/inc/globals.inc4
2 files changed, 10 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 022def4..d25715e 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -2061,6 +2061,14 @@ endif;
$config['version'] = "5.4";
}
+ /* Convert 5.4 -> 5.5 */
+ if ($config['version'] <= 5.4) {
+ /* RRD files changed for quality, traffic and packets graphs */
+ exec("/bin/rm -f /var/db/rrd/*-quality.rrd");
+ exec("/bin/rm -f /var/db/rrd/*-packets.rrd");
+ exec("/bin/rm -f /var/db/rrd/*-traffic.rrd");
+ }
+
$now = date("H:i:s");
log_error("Ended Configuration upgrade at $now");
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index f6a2870..1c34c21 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -61,7 +61,7 @@ $g = array(
"n_pppoe_units" => 16, /* this value can be overriden in pppoe->n_pppoe_units */
"pppoe_subnet" => 28, /* this value can be overriden in pppoe->pppoe_subnet */
"debug" => false,
- "latest_config" => "5.4",
+ "latest_config" => "5.5",
"nopkg_platforms" => array("cdrom"),
"minimum_ram_warning" => "115",
"minimum_ram_warning_text" => "128 megabytes",
@@ -89,4 +89,4 @@ $iptos = array("lowdelay", "throughput", "reliability");
/* TCP flags */
$tcpflags = array("syn", "ack", "fin", "rst", "psh", "urg");
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud