From: jdixon Date: Mon, 7 Jul 2008 15:53:15 +0000 (+0000) Subject: Rework the ntpd question to default to no, and ask for the NTP server only if user... X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e89f6257b3946a8e1db1f4532bbcbf055e9e8f34;p=openbsd Rework the ntpd question to default to no, and ask for the NTP server only if user chooses yes. Easier than the 3-part question and requires far fewer keystrokes to enable the 'default'. ok krw@ --- diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 62c329fb3b2..4c5bc8393df 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.435 2008/07/06 14:31:19 krw Exp $ +# $OpenBSD: install.sub,v 1.436 2008/07/07 15:53:15 jdixon Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2007 Todd Miller, Theo de Raadt, Ken Westerback @@ -1530,10 +1530,11 @@ questions() { >>/mnt/etc/rc.conf.local fi - ask "NTP server? (host, 'none' or 'default')" default - if [[ $resp != none ]]; then + ask_yn "Start ntpd(8) by default?" no + if [[ $resp == y ]]; then echo "ntpd_flags= # enabled during install" \ >>/mnt/etc/rc.conf.local + ask "NTP server? (hostname or 'default')" default if [[ $resp != default ]]; then # Comment out the default 'servers' line, and add a # 'server' line with the first token in $resp as the