Commit e614b46b authored by Franco Fichtner's avatar Franco Fichtner

system: crash report, sometimes even Etc/UTC is gone

In those cases the next firmware update with a base set helps, or
running this manually:

    # opnsense-update -fb

(cherry picked from commit f7e92beb)
parent 2e18cb7e
...@@ -1376,7 +1376,9 @@ function system_timezone_configure($verbose = false) ...@@ -1376,7 +1376,9 @@ function system_timezone_configure($verbose = false)
} }
/* apply timezone */ /* apply timezone */
copy(sprintf('/usr/share/zoneinfo/%s', $timezone), '/etc/localtime'); if (file_exists(sprintf('/usr/share/zoneinfo/%s', $timezone))) {
copy(sprintf('/usr/share/zoneinfo/%s', $timezone), '/etc/localtime');
}
if ($verbose) { if ($verbose) {
echo "done.\n"; echo "done.\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment