- replace IFS='.'; set -- $int; echo $2 with ${int##*.}

- can't use $configured_interfaces in network_stop(), so use `ifconfig -lu`
  instead
This commit is contained in:
lukem 2000-11-17 04:19:06 +00:00
parent 7d91e4941a
commit 616bd9bad1

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: network,v 1.20 2000/10/09 05:02:14 nisimura Exp $
# $NetBSD: network,v 1.21 2000/11/17 04:19:06 lukem Exp $
#
# PROVIDE: network
@ -94,8 +94,7 @@ network_start()
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"
tmp="$tmp ${int##*.}"
done
done
else
@ -333,7 +332,7 @@ network_stop()
done < /etc/ifaliases
fi
for int in $configured_interfaces; do
for int in `ifconfig -lu`; do
eval args=\$ifaliases_$int
if [ -n "$args" ]; then
set -- $args