Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/distrib/miniroot Pull up following revision(s) (requested...



details:   https://anonhg.NetBSD.org/src/rev/057c5fd0f2f4
branches:  netbsd-9
changeset: 983771:057c5fd0f2f4
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Jun 05 10:40:08 2021 +0000

description:
Pull up following revision(s) (requested by tsutsui in ticket #1281):

        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.

diffstat:

 distrib/miniroot/install.sub |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 922ca7e29a2b -r 057c5fd0f2f4 distrib/miniroot/install.sub
--- a/distrib/miniroot/install.sub      Sat Jun 05 10:35:28 2021 +0000
+++ b/distrib/miniroot/install.sub      Sat Jun 05 10:40:08 2021 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: install.sub,v 1.48.2.4 2020/12/14 17:26:36 martin Exp $
+#      $NetBSD: install.sub,v 1.48.2.5 2021/06/05 10:40:08 martin Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -403,8 +403,9 @@
        fi
 
        set -- $(ifconfig $_interface_name | sed -n '
-               /^[     ]*inet/{
+               /^[     ]*inet /{
                s/inet//
+               s,/[0-9]*,,
                s/--> [0-9.][0-9.]*//
                s/netmask//
                s/broadcast//



Home | Main Index | Thread Index | Old Index