Source-Changes-HG archive

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

[src/netbsd-1-4]: src/distrib/miniroot pullup 1.27->1.28 (is): media options ...



details:   https://anonhg.NetBSD.org/src/rev/dd0f9a8c1c79
branches:  netbsd-1-4
changeset: 468705:dd0f9a8c1c79
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Jun 18 16:19:10 1999 +0000

description:
pullup 1.27->1.28 (is): media options on sh-miniroot install

diffstat:

 distrib/miniroot/install.sub |  32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diffs (70 lines):

diff -r 270ca20b1acf -r dd0f9a8c1c79 distrib/miniroot/install.sub
--- a/distrib/miniroot/install.sub      Fri Jun 18 16:16:27 1999 +0000
+++ b/distrib/miniroot/install.sub      Fri Jun 18 16:19:10 1999 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: install.sub,v 1.25.2.1 1999/04/26 16:35:21 perry Exp $
+#      $NetBSD: install.sub,v 1.25.2.2 1999/06/18 16:19:10 perry Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -373,6 +373,7 @@
        local _interface_extra
        local _interface_mediumtype
        local _interface_supported_media
+       local _m
 
        _interface_name=$1
        _up=DOWN
@@ -426,8 +427,10 @@
        echo " $_interface_supported_media."
        echo -n "Additional media type arguments? [$_interface_mediumtype] "
        getresp "$_interface_mediumtype"
+       _m=""
        if [ "X${resp}" != X"" ]; then
                _interface_mediumtype=$resp
+               _m="media ${resp}"
        fi
 
 
@@ -448,26 +451,27 @@
                ifconfig ${_interface_name} down
                if ifconfig ${_interface_name} inet \
                    ${_interface_ip} \
-                   netmask ${_interface_mask} ${_interface_extra} up ; then
+                   netmask ${_interface_mask} \
+                   ${_interface_extra} ${_m} up ; then
                        addifconfig \
-                           ${_interface_name} \
-                           ${_interface_symname} \
-                           ${_interface_ip} \
-                           ${_interface_mask} \
-                           ${_interface_mediumtype} \
-                           ${_interface_extra}
+                           "${_interface_name}" \
+                           "${_interface_symname}" \
+                           "${_interface_ip}" \
+                           "${_interface_mask}" \
+                           "${_interface_mediumtype}" \
+                           "${_interface_extra}"
                        return 0
                fi
        else
                echo "Interface ${_interface_name} is already active."
                echo "Just saving configuration on new root filesystem."
                addifconfig \
-                   ${_interface_name} \
-                   ${_interface_symname} \
-                   ${_interface_ip} \
-                   ${_interface_mask} \
-                   ${_interface_mediumtype} \
-                   ${_interface_extra}
+                   "${_interface_name}" \
+                   "${_interface_symname}" \
+                   "${_interface_ip}" \
+                   "${_interface_mask}" \
+                   "${_interface_mediumtype}" \
+                   "${_interface_extra}"
        fi
        return 1
 }



Home | Main Index | Thread Index | Old Index