Introduce a new function parse_hn_line() that replaces the existing
authorrpe <rpe@openbsd.org>
Mon, 24 Apr 2017 20:27:59 +0000 (20:27 +0000)
committerrpe <rpe@openbsd.org>
Mon, 24 Apr 2017 20:27:59 +0000 (20:27 +0000)
commitb345dbda7b3242b38aaab151fa88414557d5f5e3
treec5fd684234631d4619ab8a6609a5d88dd246d379
parent6a560d438ebd49725b042bd6470bb7b72fdd527d
Introduce a new function parse_hn_line() that replaces the existing
hostname.if(5) parsing code in ifstart().

- change v6_config()
  - replace rtsol with autoconf in "IPv6 addres for <if>" question
  - write 'inet6 autoconf" to hostname.if file instead of rtsol
- add parse_hn_line() function with installer specific changes
  - skip shell command and bridge config lines
  - skip inet6 config (incl. dest lines) if there's no inet6 support
  - skip dhcp config if there's no dhclient
- change ifstart() to use parse_hn_line()

Discussed with and positive feedback from many
'commit' deraadt@
conditional OK sthen@ (untested)
distrib/miniroot/install.sub