Initializing A Wireless Connection At Boot Time

L'Antre du Tryphon

schedule
2012-08-05 | 21:24h
update
2013-06-08 | 19:25h
person
www.ctheroux.com
domain
www.ctheroux.com

Initializing A Wireless Connection At Boot Time

You can initialize your Raspberry PI wireless connection automatically at boot time if the instructions given in a previous post entitled How To Setup A Protected Wireless Connection Via The Command-Line worked. This is pretty straight forward. You must be root to carry out these instructions.

Save the wpa.conf file created in the previous post somewhere on the SD card you use to boot the system. For example in /root/bin/wpa.conf.

Create the following script and save it in a file called /root/bin/initWiFi for example

 #!/bin/bash /sbin/wpa_supplicant -Dwext -iwlan0 -cwpa.conf -B /sbin/dhclient wlan0 

Protect the files

 chmod 700 /root/bin/initWiFi chmod 600 /root/bin/wpa.conf 

Add to the file /etc/rc.local before the last exit statement the following line

bash /root/bin/initWiFi
Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
12.04.2024 - 03:08:18
Privacy-Data & cookie usage: