diff options
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 6f16ef0..90f1164 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 |