* [gentoo-user] postup() syntax help
@ 2008-04-14 4:26 Grant
2008-04-14 7:20 ` [gentoo-user] " Remy Blank
0 siblings, 1 reply; 4+ messages in thread
From: Grant @ 2008-04-14 4:26 UTC (permalink / raw
To: Gentoo mailing list
I'm having trouble getting an iwconfig command to execute after the
wlan0 interface has started. The following executes after net.lo
starts but there is no message about it executing after net.wlan0
starts and the rate is not limited like it is when I execute the
command manually:
postup() {
if [[ ${IFACE} = "wlan0" ]]; then
iwconfig wlan0 rate 1M
fi
return 0
}
Does anyone see where I'm going wrong here?
- Grant
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: postup() syntax help
2008-04-14 4:26 [gentoo-user] postup() syntax help Grant
@ 2008-04-14 7:20 ` Remy Blank
2008-04-14 10:36 ` Alex Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Remy Blank @ 2008-04-14 7:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 138 bytes --]
Grant wrote:
> postup() {
> if [[ ${IFACE} = "wlan0" ]]; then
IIRC, the equality operator is "==", not "=".
HTH.
-- Remy
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: postup() syntax help
2008-04-14 7:20 ` [gentoo-user] " Remy Blank
@ 2008-04-14 10:36 ` Alex Schuster
2008-04-14 11:26 ` Iain Buchanan
0 siblings, 1 reply; 4+ messages in thread
From: Alex Schuster @ 2008-04-14 10:36 UTC (permalink / raw
To: gentoo-user
Remy Blank writes:
> Grant wrote:
> > postup() {
> > if [[ ${IFACE} = "wlan0" ]]; then
>
> IIRC, the equality operator is "==", not "=".
Both is valid in bash.
I'd put a "set -xv" before the if statement, this way you see which
statements, if any, get executed.
Wonko
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Re: postup() syntax help
2008-04-14 10:36 ` Alex Schuster
@ 2008-04-14 11:26 ` Iain Buchanan
0 siblings, 0 replies; 4+ messages in thread
From: Iain Buchanan @ 2008-04-14 11:26 UTC (permalink / raw
To: gentoo-user
On Mon, 2008-04-14 at 12:36 +0200, Alex Schuster wrote:
> I'd put a "set -xv" before the if statement, this way you see which
> statements, if any, get executed.
fantastic! I never knew about that... All the debugging it could have
saved me!
thanks,
--
Iain Buchanan <iaindb at netspace dot net dot au>
Given that sooner or later we're all just going to die, what's the point of
learning about integers? -- Calvin
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-14 11:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14 4:26 [gentoo-user] postup() syntax help Grant
2008-04-14 7:20 ` [gentoo-user] " Remy Blank
2008-04-14 10:36 ` Alex Schuster
2008-04-14 11:26 ` Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox