Module Name:    src
Committed By:   martin
Date:           Sat Jun  5 10:41:20 UTC 2021

Modified Files:
        src/distrib/miniroot [netbsd-8]: install.sub

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1681):

        distrib/miniroot/install.sub: revision 1.60

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.45.56.2 -r1.45.56.3 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.45.56.2 src/distrib/miniroot/install.sub:1.45.56.3
--- src/distrib/miniroot/install.sub:1.45.56.2	Sat Dec 19 19:02:52 2020
+++ src/distrib/miniroot/install.sub	Sat Jun  5 10:41:20 2021
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: install.sub,v 1.45.56.2 2020/12/19 19:02:52 martin Exp $
+#	$NetBSD: install.sub,v 1.45.56.3 2021/06/05 10:41:20 martin 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//

Reply via email to