aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Ambrisko <ambrisko@FreeBSD.org>2004-01-25 19:52:16 +0000
committerDoug Ambrisko <ambrisko@FreeBSD.org>2004-01-25 19:52:16 +0000
commit0d6ff3866a936d9285bcbaa43616a18c642d0cde (patch)
tree55ff4ce2b77f15230b70533c6c41dd8c1360fc2e
parentd9d3e2c85fa34f34fe4b4ca7ec3994e256fcfb4a (diff)
Notes
-rwxr-xr-xetc/pccard_ether7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 6f16ef05087b..90f1164150ff 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -85,14 +85,15 @@ start_dhcp() {
case ${pccard_ether_delay} in
[Nn][Oo])
;;
- [0-9])
+ [0-9]*)
sleep ${pccard_ether_delay}
;;
esac
[ -n "$dhcp_program" ] && dhclient_program="$dhcp_program"
[ -n "$dhcp_flags" ] && dhclient_flags="$dhcp_flags"
if [ -x "${dhclient_program}" ]; then
- ${dhclient_program} ${dhclient_flags} $_dhcplist ${interface}
+ interfaces=`echo $_dhcplist ${interface} | xargs -n 1 echo | sort -u `
+ ${dhclient_program} ${dhclient_flags} ${interfaces}
else
echo "${dhclient_program}: DHCP client software not available"
fi
@@ -138,7 +139,7 @@ esac
case ${startstop} in
[Ss][Tt][Aa][Rr][Tt] | '')
if [ -x /usr/bin/grep ]; then
- if ifconfig ${interface} | grep -s UP, > /dev/null 2>&1; then
+ if ifconfig ${interface} | grep -s netmask > /dev/null 2>&1; then
# Interface is already up, so ignore it.
exit 0
fi