bin/75786: typo and useless part in /etc/pccard_ether

Ceri Davies ceri at submonkey.net
Tue Jan 4 12:30:30 GMT 2005


The following reply was made to PR bin/75786; it has been noted by GNATS.

From: Ceri Davies <ceri at submonkey.net>
To: Radko Keves <rado at daemon.sk>
Cc: FreeBSD Gnats Submit <freebsd-gnats-submit at FreeBSD.org>
Subject: Re: bin/75786: typo and useless part in /etc/pccard_ether
Date: Tue, 4 Jan 2005 12:22:23 +0000

 On Tue, Jan 04, 2005 at 01:19:41PM +0100, Radko Keves wrote:
 > Tue, Jan 04, 2005 at 12:10:41PM +0000, Ceri Davies said that
 > > On Tue, Jan 04, 2005 at 01:01:28PM +0100, Radko Keves wrote:
 > > > Tue, Jan 04, 2005 at 11:58:14AM +0000, Ceri Davies said that
 > > > > On Tue, Jan 04, 2005 at 09:41:59AM +0000, Radko Keves wrote:
 > > > > 
 > > > > > -case ${pccard_ifconfig} in
 > > > > > -[Nn][Oo] | '')
 > > > > > -       expr "${removable_interfaces}" : ".*${interface}" > /dev/null || exit 0
 > > > > > -       ;;
 > > > > > -*)
 > > > > > -       # Backward compatible
 > > > > > -       eval ifconfig_${interface}=\${pccard_ifconfig}
 > > > > > -       ;;
 > > > > > -esac
 > > > > 
 > > > > This doesn't look useless.
 > > > > 
 > > > > Could you explain your rationale a bit more please?
 > > > 
 > > > in this moment:
 > > > /etc/pccard_ether $device-name <start|stop>
 > > > 
 > > > isn't working, but after my changes is.
 > > > 
 > > > Please run /etc/pccard_ether $device-name <start|stop>
 > > > 
 > > > and you will see.
 > > 
 > > Do you have removable_interfaces set appropriately in /etc/rc.conf?
 > > If you believe so, please post your rc.conf.
 > 
 > I'm not sure what do you mean with removable interface, and where is the
 > your point, but i'm sure /etc/pccard_ether $device-name <start|stop> is
 > not working.
 > 
 > $ grep ifconfig /etc/rc.conf
 > ifconfig_bge0="DHCP"
 > 
 > I'm not talking about "devd", but about setting up dhcp with
 > pccard_ether script.
 > 
 > but:
 > $ grep -i removable /etc/defaults/rc.conf
 > removable_interfaces="" # Removable network interfaces for
 > /etc/pccard_ether.
 > $ 
 > $ grep -i removable /etc/rc.conf         
 > $ 
 > 
 > After i specified removable_interface:
 > (sorry i didn't know it is mandatory for pccard_ether script)
 > $ grep -i removable /etc/rc.conf         
 > removable_interfaces="bge0" # Removable network
 
 OK, that's one down. You must set that.
 
 > and run (original script):
 > $ sudo /etc/pccard_ether stop
 > shift: can't shift that many
 > $ 
 > 
 > so still i'm not sure about $1 shifter twice.
 
 You're not passing in the interface name - the correct invocation is:
 	/etc/pccard_ether bge0 stop
 
 > Sorry, if i didn't specified it before.
 
 No problem.
 
 Ceri


More information about the freebsd-bugs mailing list