Module Name: src Committed By: tsutsui Date: Sat May 29 23:46:14 UTC 2021
Modified Files: src/distrib/miniroot: install.sub Log Message: Handle recent ifconfig(8) outputs in the miniroot installation script. - Remove netmask slash notation for IP addresses, which has been changed between NetBSD 7.x and 8.0: http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/ifconfig/af_inet.c#rev1.24 - Ignore inet6 entries, which miniroot scripts don't support Should be pulled up to netbsd-9 and netbsd-8. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/distrib/miniroot/install.sub Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/miniroot/install.sub diff -u src/distrib/miniroot/install.sub:1.59 src/distrib/miniroot/install.sub:1.60 --- src/distrib/miniroot/install.sub:1.59 Sat Dec 12 05:23:21 2020 +++ src/distrib/miniroot/install.sub Sat May 29 23:46:14 2021 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: install.sub,v 1.59 2020/12/12 05:23:21 tsutsui Exp $ +# $NetBSD: install.sub,v 1.60 2021/05/29 23:46:14 tsutsui Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -403,8 +403,9 @@ configure_ifs() { fi set -- $(ifconfig $_interface_name | sed -n ' - /^[ ]*inet/{ + /^[ ]*inet /{ s/inet// + s,/[0-9]*,, s/--> [0-9.][0-9.]*// s/netmask// s/broadcast//