Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bugmenot
Tux's lil' helper
Tux's lil' helper


Joined: 11 Feb 2006
Posts: 76

PostPosted: Tue Jul 26, 2011 3:57 pm    Post subject: wpa_supplicant.conf Reply with quote

hello
i have recently been forced to switch from iwconfig to wpa_supplicant
i am unable to get the /etc/conf.d/wpa_supplicant config file working correctly

/etc/conf.d/wpa_supplicant:
Code:

ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

ap_scan=1

network={
  ssid="Internet"
  psk="123"
  priority=5
}


/etc/init.d/net.wlan0 start
returns

Code:

/etc/init.d/../conf.d/wpa_supplicant: line 11: syntax error near unexpected token `}'
/etc/init.d/../conf.d/wpa_supplicant: line 11: `}'
/etc/init.d/../conf.d/wpa_supplicant: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires


i've tried retyping/copying/pasting the config file multiple times with no success
any help at all is appreciated
thanks in advance
Back to top
View user's profile Send private message
kimmie
Guru
Guru


Joined: 08 Sep 2004
Posts: 531
Location: Australia

PostPosted: Tue Jul 26, 2011 5:51 pm    Post subject: Reply with quote

Your file content looks fine; only it goes in /etc/wpa_supplicant/wpa_supplicant.conf; there shouldn't be a /etc/conf.d/wpa_supplicant :wink:
Back to top
View user's profile Send private message
dantoo
n00b
n00b


Joined: 13 Dec 2010
Posts: 3

PostPosted: Sat Jul 30, 2011 2:45 pm    Post subject: Reply with quote

kimmie wrote:
Your file content looks fine; only it goes in /etc/wpa_supplicant/wpa_supplicant.conf; there shouldn't be a /etc/conf.d/wpa_supplicant :wink:


/etc/conf.d/wpa_supplicant is the config file for the wpa_supplicant init script.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sat Jul 30, 2011 3:03 pm    Post subject: Reply with quote

my /etc/conf.d/wpa_supplicant looks like this:
Code:

# conf.d file for wpa_supplicant
#
# Please check man 8 wpa_supplicant for more information about the options
# wpa_supplicant accepts.
#
wpa_supplicant_args=""


I think the file you posted above should go, as already noted,
in /etc/wpa_supplicant/ directory

have you tried that?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum