Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/miniroot Finish the old job of makeing this work wit...
details: https://anonhg.NetBSD.org/src/rev/1d35cf50a03e
branches: trunk
changeset: 499224:1d35cf50a03e
user: is <is%NetBSD.org@localhost>
date: Tue Nov 14 20:37:25 2000 +0000
description:
Finish the old job of makeing this work with media-less interfaces, e.g.
bah or amiga if_es.
diffstat:
distrib/miniroot/install.sub | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r 414ee03abb25 -r 1d35cf50a03e distrib/miniroot/install.sub
--- a/distrib/miniroot/install.sub Tue Nov 14 20:28:22 2000 +0000
+++ b/distrib/miniroot/install.sub Tue Nov 14 20:37:25 2000 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: install.sub,v 1.37 2000/10/30 20:21:08 is Exp $
+# $NetBSD: install.sub,v 1.38 2000/11/14 20:37:25 is Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -312,16 +312,12 @@
# $2 - interface symbolic name
# $3 - interface IP address
# $4 - interface netmask
- # $5 - (optional) interface link-layer medium
+ # $5 - (optional) interface link-layer medium, preceded by "media ", else ""
# $6 - (optional) interface link-layer directives
local _m
- _m=""
- if [ "$5" != "" ]; then
- _m="media $5"
- fi
# Create a ifconfig.* file for the interface.
- echo "inet $2 netmask $4 $_m $6" > /tmp/ifconfig.$1
+ echo "inet $2 netmask $4 $5 $6" > /tmp/ifconfig.$1
addhostent $3 $2
}
@@ -478,7 +474,7 @@
"${_interface_symname}" \
"${_interface_ip}" \
"${_interface_mask}" \
- "${_interface_mediumtype}" \
+ "${_m}" \
"${_interface_extra}"
return 0
fi
@@ -490,7 +486,7 @@
"${_interface_symname}" \
"${_interface_ip}" \
"${_interface_mask}" \
- "${_interface_mediumtype}" \
+ "${_m}" \
"${_interface_extra}"
fi
return 1
Home |
Main Index |
Thread Index |
Old Index