diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 19:59:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 19:59:28 +0000 |
commit | 27150275fd64df61982359d2d16740890b1ec30b (patch) | |
tree | e9f120104ea2510af2527db46ac71189b834dfd8 /etc | |
parent | 54f1ad2862efc3eafa131ecb69e8aaa15557fa6e (diff) | |
download | pfsense-27150275fd64df61982359d2d16740890b1ec30b.zip pfsense-27150275fd64df61982359d2d16740890b1ec30b.tar.gz |
Unlock flash before writing /etc/localtime
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 6 |
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"; } |