summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-27 02:59:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-27 02:59:05 +0000
commiteebeaf0dba59f5ce33da1ea8cc109d2ec895e17e (patch)
treeca9ca236e56cded4d00f078e42bb3104ad5c22b5
parent58089ad919f53e28c6f05f490074c993e770337d (diff)
downloadpfsense-eebeaf0dba59f5ce33da1ea8cc109d2ec895e17e.zip
pfsense-eebeaf0dba59f5ce33da1ea8cc109d2ec895e17e.tar.gz
Mount for RW before writing out OLSR config
Noticed-by: LSF
-rw-r--r--etc/inc/services.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index a4769df..7de77a8 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -875,6 +875,7 @@ function setup_wireless_olsr() {
$mt = microtime();
echo "setup_wireless_olsr($interface) being called $mt\n";
}
+ conf_mount_rw();
foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
$fd = fopen("{$g['varetc_path']}/olsr.conf", "w");
$olsr .= <<<EODA
@@ -1175,6 +1176,8 @@ EOD;
mwexec("killall -HUP olsrd");
else
mwexec_bg("/usr/local/sbin/olsrd -f {$g['varetc_path']}/olsr.conf");
+
+ conf_mount_ro();
}
?> \ No newline at end of file
OpenPOWER on IntegriCloud