summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2008-07-06 14:31:19 +0000
committerkrw <krw@openbsd.org>2008-07-06 14:31:19 +0000
commite22c7a48a6d2d549903ce5089dd062e5cdb13110 (patch)
tree144fba9cb5a1e3ce0c2fbe2faff5815d1e9caf53
parentWhen the device gets close switch back from alternate interface to (diff)
downloadwireguard-openbsd-e22c7a48a6d2d549903ce5089dd062e5cdb13110.tar.xz
wireguard-openbsd-e22c7a48a6d2d549903ce5089dd062e5cdb13110.zip
Make 'dhcp' the initial default when configuring the network. This
makes one more answer <cr>'able during install without changing any existing behaviour. Change 'NTP server?' default answer from 'none' to 'default'. Suggested by thib@, supported by marco@, jsing@, millert@
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index a88300106e7..62c329fb3b2 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.434 2008/07/02 00:13:32 deraadt Exp $
+# $OpenBSD: install.sub,v 1.435 2008/07/06 14:31:19 krw 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
@@ -664,7 +664,7 @@ v4_config() {
fi
fi
- [[ -x /sbin/dhclient ]] && _prompt=" or 'dhcp'"
+ [[ -x /sbin/dhclient ]] && { _prompt=" or 'dhcp'" ; : ${_addr:=dhcp} ; }
_prompt="IPv4 address for $_ifs? (or 'none'$_prompt)"
ask_until "$_prompt" "$_addr"
@@ -1530,7 +1530,7 @@ questions() {
>>/mnt/etc/rc.conf.local
fi
- ask "NTP server? (host, 'none' or 'default')" none
+ ask "NTP server? (host, 'none' or 'default')" default
if [[ $resp != none ]]; then
echo "ntpd_flags= # enabled during install" \
>>/mnt/etc/rc.conf.local