aboutsummaryrefslogtreecommitdiffstats
path: root/config/openospfd/status_ospfd.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/openospfd/status_ospfd.php')
-rw-r--r--config/openospfd/status_ospfd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openospfd/status_ospfd.php b/config/openospfd/status_ospfd.php
index 6fcca6bd..25f18d85 100644
--- a/config/openospfd/status_ospfd.php
+++ b/config/openospfd/status_ospfd.php
@@ -93,8 +93,8 @@ function doCmdT($title, $command) {
echo "</table>\n";
}
-$pfSversion = str_replace("\n", "", file_get_contents("/etc/version"));
-if(strstr($pfSversion, "1.2"))
+$pf_version=substr(trim(file_get_contents("/etc/version")),0,3);
+if ($pf_version < 2.0)
$one_two = true;
?>