summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-20 19:59:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-20 19:59:28 +0000
commit27150275fd64df61982359d2d16740890b1ec30b (patch)
treee9f120104ea2510af2527db46ac71189b834dfd8 /etc
parent54f1ad2862efc3eafa131ecb69e8aaa15557fa6e (diff)
downloadpfsense-27150275fd64df61982359d2d16740890b1ec30b.zip
pfsense-27150275fd64df61982359d2d16740890b1ec30b.tar.gz
Unlock flash before writing /etc/localtime
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ce1fb6d..9f702b0 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -81,7 +81,7 @@ function system_resolvconf_generate($dynupdate = false) {
} else {
unlink("{$g['varetc_path']}/resolv.conf.new");
}
-
+
if (!$g['booting']) {
/* restart dhcpd (nameservers may have changed) */
@@ -416,6 +416,8 @@ function system_timezone_configure() {
$syscfg = $config['system'];
+ conf_mount_rw();
+
if ($g['booting'])
echo "Initializing timezone... ";
@@ -427,6 +429,8 @@ function system_timezone_configure() {
exec("/usr/bin/tar xzfO /usr/share/zoneinfo.tgz " .
escapeshellarg($timezone) . " > /etc/localtime");
+ conf_mount_ro();
+
if ($g['booting'])
echo "done\n";
}
OpenPOWER on IntegriCloud