Fix a blatant bug when running '/etc/pccard_ether device stop'.

I wasn't dropping the interface correctly, but not noticing because
the interface was going away when the card was ejected.

Submitted by:	Motomichi Matsuzaki <mzaki@e-mail.ne.jp>
This commit is contained in:
Josef Karthauser 2000-10-28 14:31:40 +00:00
parent aa29dffdf8
commit 78ba546662

View File

@ -46,7 +46,7 @@ fi
interface=$1
shift
startstop=$2
startstop=$1
shift
case ${startstop} in
@ -101,7 +101,7 @@ case ${startstop} in
;;
# Stop the interface
*)
/sbin/ifconfig $device delete
/sbin/ifconfig ${interface} delete
stop_dhcp
;;
esac