diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 20:25:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 20:25:52 +0000 |
commit | 34febcde2af3827a634bd0514d3533e120cdfc00 (patch) | |
tree | 4e8a60faff04d5e59ed38bf37fa97ab4c3dc603e /etc/inc/system.inc | |
parent | ec6879e3a855ff0e8f980cacbd9dbecb23b9d2af (diff) | |
download | pfsense-34febcde2af3827a634bd0514d3533e120cdfc00.zip pfsense-34febcde2af3827a634bd0514d3533e120cdfc00.tar.gz |
Mount compact flash rw before writing timezone
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 9f702b0..691b662 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -416,8 +416,6 @@ function system_timezone_configure() { $syscfg = $config['system']; - conf_mount_rw(); - if ($g['booting']) echo "Initializing timezone... "; @@ -426,11 +424,13 @@ function system_timezone_configure() { if (!$timezone) $timezone = "Etc/UTC"; + conf_mount_rw(); + exec("/usr/bin/tar xzfO /usr/share/zoneinfo.tgz " . escapeshellarg($timezone) . " > /etc/localtime"); conf_mount_ro(); - + if ($g['booting']) echo "done\n"; } |