LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-13-2014, 05:02 AM   #1
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
Wifi at boot?


I have been trying to setup my wireless to work at boot but am now stuck.

I can get wifi to work if i run
Code:
wpa_supplicant -c/etc/wpa_supplicant.conf -Dwext -iwlan1
before restarting rc.inet1 which makes me think i have that set up correctly

wpa_supplicant does not seem to start if i just run /etc/rc.d/rc.inet1 restart wlan1

log

Code:
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo down
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  /sbin/ifconfig lo 127.0.0.1
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  eth0 interface is not configured in /etc/rc.d/rc.inet1.conf
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  eth1 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  eth2 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  eth3 interface does not exist (yet)
Aug 13 10:48:59 home logger: /etc/rc.d/rc.inet1:  /sbin/dhcpcd -t 10  wlan1
Aug 13 10:48:59 home dhcpcd[24964]: version 6.0.5 starting
Aug 13 10:48:59 home kernel: [51421.584191] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Aug 13 10:48:59 home dhcpcd[24964]: wlan1: waiting for carrier
Aug 13 10:49:17 home dhcpcd[24964]: exited
Aug 13 10:49:17 home logger: /etc/rc.d/rc.inet1:  eth5 interface does not exist (yet)

/etc/wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
  scan_ssid=1
  proto=RSN
  auth_alg=OPEN 
  ssid="OpenWrt"
  key_mgmt=WPA-PSK
  pairwise=TKIP CCMP
  group=TKIP CCMP
  psk="*********************"
}

/etc/rc.d/rc.inet1.conf

Code:
IFNAME[4]="wlan1"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_ESSID[4]=OpenWrt
WLAN_MODE[4]=Managed
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPAWAIT[4]=20
#WLAN_WPADRIVER[4]="ndiswrapper"
 
Old 08-13-2014, 06:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,356

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
why wlan1? Why not wlan0?

anyhow, what have you set up in /etc/rc.wireless.conf? That's a better place to set up wireless. Then just blank the rc.inet1 settings.
 
Old 08-13-2014, 07:06 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by business_kid View Post
why wlan1? Why not wlan0?

anyhow, what have you set up in /etc/rc.wireless.conf? That's a better place to set up wireless. Then just blank the rc.inet1 settings.
Wrong answer.

Never use rc.wireless.conf please, use rc.inet1.conf also for your wireless configuration.
In "man rc.inet1.conf" you will find "/etc/rc.d/rc.wireless.conf - configuration parameter file ( deprecated )".

More about the topic here: http://alien.slackbook.org/dokuwiki/...onf_deprecated

Eric
 
1 members found this post helpful.
Old 08-13-2014, 12:05 PM   #4
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
I think its wlan1 from when i had two wifi cards in.

Do either of you have any ideas why wpa_supplicant is not starting when the network is started?
 
Old 08-13-2014, 01:29 PM   #5
WhiteWolf1776
Member
 
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288

Rep: Reputation: 95
These lines should not be needed:
WLAN_ESSID[4]=OpenWrt
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"

This should be set in the /etc/wpa_supplicant.conf and can be handled with the wpa_gui if you are in x and want it just handled.

I've also never needed these lines:
WLAN_MODE[4]=Managed
WLAN_WPAWAIT[4]=20

and would recommend leaving these lines commented out:
IPADDR[4]=""
NETMASK[4]=""

Last edited by WhiteWolf1776; 08-13-2014 at 01:29 PM. Reason: typo
 
Old 08-13-2014, 02:19 PM   #6
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
Thanks for the response I have tried removing the lines above but it has not helped, also the WLAN_WPAWAIT[4]=20 i have tried without and with different values but that has not helped either.

Any other ideas?
 
Old 08-13-2014, 02:22 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
Any other ideas?
Did you try NetworkManager (then "nm-applet &" to display the connection widget)?
 
Old 08-13-2014, 02:30 PM   #8
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
My problem started when i wanted to upgrade from runlevel 3, as soon as i stop kde my network goes down, i stopped networkmanager and decided to use wpa_supplement.

If i start wpa_supplement manually then run /etc/rc.d/rc.inet1 restart wlan1 I have no problems (that is how i am online now) but as far as i understand it just running /etc/rc.d/rc.inet1 should trigger wpa to connect which would give me wifi at boot.
 
Old 08-13-2014, 03:52 PM   #9
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
I've noticed that on some wireless cards it's necessary to unload and reload it's driver modules after deconfiguring/stoppong the interface, failing to do that resulted in the inability to reassociate it to any access point.
Could it be that you're hitting a similar issue ?
 
Old 08-13-2014, 04:53 PM   #10
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
I've done something similar ages ago and documented it here:

http://www.frogge.de/pepper/p50ij/p50ij.html#wlan

ymmv
 
Old 08-13-2014, 09:42 PM   #11
coldbeer
Member
 
Registered: May 2006
Location: Orion–Cygnus Arm, MWG
Distribution: Slackware, Ubuntu
Posts: 249

Rep: Reputation: 130Reputation: 130
Quote:
Originally Posted by SavoTU View Post
My problem started when i wanted to upgrade from runlevel 3, as soon as i stop kde my network goes down, i stopped networkmanager and decided to use wpa_supplement.

If i start wpa_supplement manually then run /etc/rc.d/rc.inet1 restart wlan1 I have no problems (that is how i am online now) but as far as i understand it just running /etc/rc.d/rc.inet1 should trigger wpa to connect which would give me wifi at boot.
Do you have eth0 parameters still set at the top of rc.inet1.conf? Once you have the wireless working manually, if you still have eth0 params set, the networks will clash on a reboot. You should comment out any ethx params in rc.inet1.conf and only have the wlan params in order to have it boot to wlan.
 
Old 08-13-2014, 11:43 PM   #12
Goobers
Member
 
Registered: Jul 2014
Posts: 56

Rep: Reputation: Disabled
I've since switched to using WICD since I want to be able to use my laptop with multiple networks without too much hassle. However, I did use inet1 and supplicant before that.

Quote:
Originally Posted by SavoTU View Post
/etc/rc.d/rc.inet1.conf

Code:
IFNAME[4]="wlan1"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_ESSID[4]=OpenWrt
WLAN_MODE[4]=Managed
WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPAWAIT[4]=20
#WLAN_WPADRIVER[4]="ndiswrapper"
I only have

Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="systemname"
WLAN_ESSID[4]=ssidname
WLAN_WPA[4]="wpa_supplicant"
everything else stays commented out...

that line for wpapsk in inet1 is incorrect... looks like you chopped out a chunk of the example line.

try commenting out yours until only those 5 are left.
 
Old 08-15-2014, 04:53 AM   #13
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
Thanks for the suggestions. I have edited my config files made sure rc.wireless is -x rebooted my pc but still inet1 is not starting wpa_supplicant.
 
Old 08-15-2014, 05:07 AM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by SavoTU View Post
Thanks for the suggestions. I have edited my config files made sure rc.wireless is -x rebooted my pc but still inet1 is not starting wpa_supplicant.
Eh, "made sure rc.wireless is -x"? You removed the executable bit from rc.wireless? That will be the cause then, rc.wireless needs to be executable because that is what starts wpa_supplicant.

Eric
 
Old 08-15-2014, 05:14 AM   #15
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Original Poster
Rep: Reputation: 40
Thanks i feel silly now but it is working as expected. I had assumed that since rc.wireless.conf was deprecated the same would be true of rc.wireless.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning On Wifi at Boot LanternAtomika Linux - Wireless Networking 1 07-08-2014 08:04 AM
Wifi goes down during boot sequence bigadel Linux - Networking 1 01-13-2009 01:34 PM
Connect to wifi on boot matazar42 Linux - Wireless Networking 6 09-16-2007 11:21 PM
SuSE 9.3 wifi on boot metamaverick Linux - Wireless Networking 4 08-01-2005 05:00 PM
can't boot with wifi ak99505 Linux - Wireless Networking 1 05-18-2005 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration