Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:setting_up_wifi_at_boot [2012/10/25 01:05] – created ethanH | wiki:setting_up_wifi_at_boot [2012/10/25 01:45] (current) – [Prerequisites] ethanH | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Automatically Connect To A WPA Protected Access Point at Boot ====== | ====== Automatically Connect To A WPA Protected Access Point at Boot ====== | ||
==== Prerequisites ==== | ==== Prerequisites ==== | ||
- | A prerequisite is to read the instructions here: [[wiki: | + | A prerequisite is to read the instructions here: [[wiki: |
- | To use this guide, one must follow the instructions under the **More | + | To use this guide, one must follow the instructions under the [[wiki: |
Specifically you must have a " | Specifically you must have a " | ||
Line 9: | Line 9: | ||
udhcpc -i *interface* | udhcpc -i *interface* | ||
</ | </ | ||
- | |||
==== Locate commands ==== | ==== Locate commands ==== | ||
Line 16: | Line 15: | ||
We can do this using the **find** command. | We can do this using the **find** command. | ||
- | < | + | < |
For me: | For me: | ||
< | < | ||
Line 26: | Line 25: | ||
</ | </ | ||
And | And | ||
- | < | + | < |
Results in: | Results in: | ||
< | < | ||
/ | / | ||
+ | </ | ||
+ | |||
+ | So I write down the two file locations: | ||
+ | |||
+ | ==== Move The Config File ==== | ||
+ | You should have a file named **wpa_configure.conf**. | ||
+ | If you do not have a **wpa_configure.conf** file, please read these instructions: | ||
+ | This file needs to be persistent between reboots. | ||
+ | I chose to keep my **wpa_configure.conf** file in the **/opt** directory, but you can save it anywhere as long as that location persists between reboots. | ||
+ | ==== Editing bootlocal.sh ==== | ||
+ | Finally we need to tell Tiny Core that we want to run these specific commands at boot.\\ | ||
+ | Thus we will need to append to our **bootlocal.sh** file which can be found in the **/opt** directory. | ||
+ | |||
+ | Lets open up a text editor and add these 3 lines: | ||
+ | < | ||
+ | # Setup Wireless | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | * The first line is just an optional comment to remind us what these 2 lines do. | ||
+ | * My [wireless adapter] = **wlan0** | ||
+ | * My / | ||
+ | * My / | ||
+ | * My / | ||
+ | * The " &" tells the command to run in the background which is what we want. | ||
+ | So my **bootlocal.sh** file additions look like: | ||
+ | < | ||
+ | # Setup Wireless | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== Save Your Changes ==== | ||
+ | Finally, we must save all of our changes.\\ This will save changes to our **bootlocal.sh** file and also allow us to save our **wpa_configure.conf** file. | ||
+ | |||
+ | To save your changes run: | ||
+ | < | ||
+ | sudo filetool.sh -b | ||
</ | </ |