installer: Fix handling of CMOS set to UTC vs. CMOS set to wall time.
authorSascha Wildner <saw@online.de>
Mon, 26 Nov 2012 18:39:57 +0000 (19:39 +0100)
committerSascha Wildner <saw@online.de>
Mon, 26 Nov 2012 18:39:57 +0000 (19:39 +0100)
commit47572d7e2d970f9ef93bc4203c73b182350d34a7
treefbcc1525eebb8d87d358ab42f70fc303eb2495fa
parent21ccbc2d3cf3b6c7eb27000386e21aeae9271820
installer: Fix handling of CMOS set to UTC vs. CMOS set to wall time.

It was reversed in the installer (compared to tzsetup(8)).

/etc/wall_cmos_clock needs to be created when the CMOS is set to the
time of the clock on the wall. While here, also add removing the file
in case the user selects 'CMOS set to UTC'. This is if he chose the
other setting previously and then tried again.

Reported-by: many
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/39>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2060>
usr.sbin/installer/dfuibe_installer/fn_configure.c