Handle # comments in network.cfg file

This commit is contained in:
bergware
2016-10-30 10:38:10 +01:00
parent 216d85232d
commit a59a717749
+1 -1
View File
@@ -28,7 +28,7 @@ function ifname($name) {
}
if ($run && file_exists($cfg)) {
$old = parse_ini_file($cfg);
$old = parse_ini_string(preg_replace('/^#/m',';',file_get_contents($cfg)));
if (isset($old['SYSNICS'])) {
// new syntax
$ifname = ifname($set);