summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wiki/openbsd/installation.mdwn11
1 files changed, 5 insertions, 6 deletions
diff --git a/wiki/openbsd/installation.mdwn b/wiki/openbsd/installation.mdwn
index ca0957e..30ea13a 100644
--- a/wiki/openbsd/installation.mdwn
+++ b/wiki/openbsd/installation.mdwn
@@ -65,13 +65,12 @@ Simply run the command: `fw_update`
To enable wifi on your device, run the following command (filling in the proper details where need be)
- ifconfig iwn0 nwid ID wpakey PASSPHRASE
+ echo "join WIFI-NAME wpakey PASSPHRASE" >> /etc/hostname.iwn0
+ echo "dhcp" >> /etc/hostname.iwn0
+ echo "inet6 autoconf" >> /etc/hostname.iwn0
+ echo "up powersave" >> /etc/hostname.iwn0
-An example for reference:
-
- ifconfig iwn0 nwid wifi_name wpakey my_secure_password
-
-Take note of the `iwn0`, as this might differ on your machine.
+Take note of the `iwn0`, as this might differ on your machine. (You can check this my running `ifconfig`)
You might also need to run `doas sh /etc/netstart` after.