Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/etc/rc.d Pull up revision 1.15 (requested by bouyer):
details: https://anonhg.NetBSD.org/src/rev/cc4e0cc80937
branches: netbsd-1-5
changeset: 490930:cc4e0cc80937
user: he <he%NetBSD.org@localhost>
date: Tue Mar 20 18:19:27 2001 +0000
description:
Pull up revision 1.15 (requested by bouyer):
Add support for cloning network devices (e.g. vlan). Fixes
PR#12398.
diffstat:
etc/rc.d/network | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 140e6a6a8749 -r cc4e0cc80937 etc/rc.d/network
--- a/etc/rc.d/network Tue Mar 20 18:14:44 2001 +0000
+++ b/etc/rc.d/network Tue Mar 20 18:19:27 2001 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.11.4.5 2000/08/23 12:27:27 lukem Exp $
+# $NetBSD: network,v 1.11.4.6 2001/03/20 18:19:27 he Exp $
#
# PROVIDE: network
@@ -91,6 +91,13 @@
if [ "$net_interfaces" != NO ]; then
if checkyesno auto_ifconfig; then
tmp="`ifconfig -l`"
+ for cloner in `ifconfig -C 2>/dev/null`; do
+ for int \
+ in `/bin/ls /etc/ifconfig.${cloner}[0-9]* 2>/dev/null`; do
+ int=`IFS='.'; set -- $int; echo $2`
+ tmp="$tmp $int"
+ done
+ done
else
tmp="$net_interfaces"
fi
Home |
Main Index |
Thread Index |
Old Index