diff --git a/usr.sbin/bsdinstall/scripts/netconfig b/usr.sbin/bsdinstall/scripts/netconfig index f9913c3..90cfe65 100755 --- a/usr.sbin/bsdinstall/scripts/netconfig +++ b/usr.sbin/bsdinstall/scripts/netconfig @@ -177,7 +177,20 @@ elif [ ${IPV4_AVAIL} -eq 1 ]; then 'IPv4 DNS #1' 2 0 \"${IP4_1}\" 2 16 16 0 0 'IPv4 DNS #2' 3 0 \"${IP4_2}\" 3 16 16 0 0" else - exit 0 + # Neither IPv4 nor IPv6 was configured + dialog --backtitle 'FreeBSD Installer' --title 'Network Configuration' \ + --yesno 'No network addresses were configured by the installer. Would you like to continue anyway?' 0 0 + if [ $? -eq $DIALOG_OK ]; then + RESOLV=" + 'Search' 1 0 \"${SEARCH}\" 1 16 50 0 0 + 'Nameserver' 2 0 \"Nameserver\" 2 16 50 0 2 + 'IPv6 DNS #1' 2 0 \"${IP6_1}\" 2 16 50 0 0 + 'IPv6 DNS #2' 3 0 \"${IP6_2}\" 3 16 50 0 0 + 'IPv4 DNS #1' 4 0 \"${IP4_1}\" 4 16 16 0 0 + 'IPv4 DNS #2' 5 0 \"${IP4_2}\" 5 16 16 0 0" + else + exit 0 + fi fi exec 3>&1