Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:setting_up_wifi_at_boot [2012/10/25 01:22] – [Locate commands] 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: | ||
< | < | ||
Line 34: | Line 33: | ||
So I write down the two file locations: | So I write down the two file locations: | ||
- | ==== Move Config File ==== | + | ==== Move The Config File ==== |
- | You should have a file named **wpa_configure.conf**. | + | You should have a file named **wpa_configure.conf**. |
- | Thus you must store it a place that is saved between reboots. | + | 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. | 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 ==== | ==== Editing bootlocal.sh ==== | ||
Finally we need to tell Tiny Core that we want to run these specific commands at boot.\\ | Finally we need to tell Tiny Core that we want to run these specific commands at boot.\\ | ||
Line 56: | Line 55: | ||
* My / | * My / | ||
* The " &" tells the command to run in the background which is what we want. | * The " &" tells the command to run in the background which is what we want. | ||
- | So my bootlocal.sh file additions look like: | + | So my **bootlocal.sh** file additions look like: |
< | < | ||
# Setup Wireless | # 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 | ||
</ | </ |