summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tzsetup
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/tzsetup')
-rw-r--r--usr.sbin/tzsetup/tzsetup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index f1d7d29..6e310e8 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -647,8 +647,16 @@ main(int argc, char **argv)
make_menus();
init_dialog();
+ if (!dialog_yesno("Select local or UTC (Greenwich Mean Time) clock",
+ "Is this machine's CMOS clock set to UTC? If it is set to local time,\n"
+ "please choose NO here!", 7, 72))
+ system("rm -f /etc/wall_cmos_clock");
+ else
+ system("touch /etc/wall_cmos_clock");
+ dialog_clear_norefresh();
dialog_menu("Time Zone Selector", "Select a region", -1, -1,
NCONTINENTS, -NCONTINENTS, continents, 0, NULL, NULL);
+ dialog_clear();
end_dialog();
return 0;
}
OpenPOWER on IntegriCloud