You are not logged in.
I have an ESSID I'd like to use, but my network profile doesn't like it very much. What can I do to get the config to work properly? If I do a iwconfig essid Jenna\ and\ Max key xxxx, it works.
# Wireless Settings (optional)
ESSID=Jenna\ and\ Max
KEY=2837043F54CD2487772C0D5F1E
IWOPTS="mode managed essid Jenna and Max key restricted $KEY"
[root@myhost ~]# netcfg mynet
:: Starting network profile: mynet [BUSY]
iwconfig: unknown command "and\"
[FAIL]
Last edited by synthead (2007-05-15 04:11:52)
Offline
I hit this problem the other day - warrants some investigation
Offline
How about:
ESSID=s:Jenna and Max
KEY=2837043F54CD2487772C0D5F1E
IWOPTS="mode managed essid $ESSID key restricted $KEY"
I believe s: sets the ESSID as a string, but I'm not 100% sure...or possible just 'Jenna and Max'?
IWOPTS="mode managed essid 'Jenna and Max' key restricted $KEY"
Last edited by deathadder (2007-05-15 07:54:36)
#define QUESTION ((bb) || !(bb))
Offline
Thanks, I'll try that.
By the way, instead of ...
# Wireless Settings (optional)
ESSID=Jenna\ and\ Max
KEY=2837043F54CD2487772C0D5F1E
IWOPTS="mode managed essid Jenna and Max key restricted $KEY"
... I mean to put ...
# Wireless Settings (optional)
ESSID=Jenna\ and\ Max
KEY=2837043F54CD2487772C0D5F1E
IWOPTS="mode managed essid $ESSID key restricted $KEY"
I was just shifting around a bunch of stuff, trying different options ...
Offline
I hit this problem the other day - warrants some investigation
I've found at least a workaround for the problem. If you make the following changes in /usr/bin/netcfg it should work:
if [ "$IWOPTS" ]; then
#### using the eval command around the whole iwconfig command should do the trick ####
# iwconfig $WIFI_INTERFACE $IWOPTS
eval "iwconfig $WIFI_INTERFACE $IWOPTS"
[ $? -ne 0 ] && stat_fail && return
[ "$WIFI_WAIT" ] && sleep $WIFI_WAIT
fi
I'm not experienced with shell scripting and I don't know if the eval command might have any side effects, but so far I haven't encountered any problems with this.
Hope it helps!
The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.
Offline
Weird ... that's already in my netcfg.
Offline
Thanks, I'll try that.
By the way, instead of ...
# Wireless Settings (optional) ESSID=Jenna\ and\ Max KEY=2837043F54CD2487772C0D5F1E IWOPTS="mode managed essid Jenna and Max key restricted $KEY"
... I mean to put ...
# Wireless Settings (optional) ESSID=Jenna\ and\ Max KEY=2837043F54CD2487772C0D5F1E IWOPTS="mode managed essid $ESSID key restricted $KEY"
I was just shifting around a bunch of stuff, trying different options ...
Why not just try
ESSID="Jenna and Max"
I doublequote my ESSID (although I'm not using spaces or anything like that). Worth a try though.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Thanks for your help. I still get errors though ...
[root@myhost ~]# netcfg mynet
:: Starting network profile: mynet [BUSY]
iwconfig: unknown command "and"
[FAIL]
Last edited by synthead (2007-05-15 12:05:31)
Offline
Try single quotes, although I don't give it that big a chance... You might be better off using underscores.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
could someone give the latest netscripts a shot? I'd like to know if this is fixed there.
http://wiki.archlinux.org/index.php/Network_Scripts
excuse the weak documentation, im writing it now. there's some examples included, be sure to look at the .ini based ones, not the bash styled ones. There's also examples on that wiki page.
James
Offline
Weird ... that's already in my netcfg.
Really? Are you using Arch64 or standard Arch for i686?
I'm using Arch64, have initscripts-0.8-12 installed (which contains /usr/bin/netcfg), and the eval command is not used in the default /usr/bin/netcfg.
But maybe my explanation was misleading, so I'll try again (commands sometimes say more than words ):
# sed "s/iwconfig \$WIFI_INTERFACE \$IWOPTS/eval \"iwconfig \$WIFI_INTERFACE \$IWOPTS\"/" -i /usr/bin/netcfg
So after changing this one line in /usr/bin/netcfg, I can use both ESSID="ESSID\ with\ spaces" and ESSID="\"ESSID with spaces\"" successfully.
The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.
Offline
Ahhhh ... I'll look into that some more when I get off'a work, thank you!
Offline
I just botched it together. I threw this in the end of my config and called it good ...
iwconfig eth1 essid Jenna\ and\ Max key 2837043F54CD2487772C0D5F1E
Offline