diff options
| author | Doug Ambrisko <ambrisko@FreeBSD.org> | 2004-01-25 19:52:16 +0000 |
|---|---|---|
| committer | Doug Ambrisko <ambrisko@FreeBSD.org> | 2004-01-25 19:52:16 +0000 |
| commit | 0d6ff3866a936d9285bcbaa43616a18c642d0cde (patch) | |
| tree | 55ff4ce2b77f15230b70533c6c41dd8c1360fc2e /etc | |
| parent | d9d3e2c85fa34f34fe4b4ca7ec3994e256fcfb4a (diff) | |
Notes
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/pccard_ether | 7 |
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 |
