Skip to content

Commit

Permalink
initial wlan config file
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnotoad committed Dec 8, 2022
1 parent 45a8ebb commit 6a27f57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion board/fischertechnik/TXT/rootfs/etc/network/interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ iface usb0 inet static

iface wlan0 inet dhcp
udhcpc_opts -t 0 &
pre-up test -f /etc/network/wpa.wlan0.conf || touch /etc/network/wpa.wlan0.conf
pre-up wpa_supplicant -B -Dnl80211 -iwlan0 -I/etc/wpa_supplicant.conf -c/etc/network/wpa.wlan0.conf
post-down killall -q wpa_supplicant

Expand Down
1 change: 1 addition & 0 deletions board/fischertechnik/TXT/rootfs/etc/network/wpa.wlan0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# no wifi configuration saved yet

3 comments on commit 6a27f57

@ski7777
Copy link
Member

@ski7777 ski7777 commented on 6a27f57 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? definitely both will work, but what happens if you accidentally remove the file? It wont be recovered...

@hypnotoad
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had problems that wpa_supplicant somehow was not started after creating a completely new sd card. man interfaces sais that pre-up commands may be executed in parallel. I guess that the file was not created e fast enough.

@ski7777
Copy link
Member

@ski7777 ski7777 commented on 6a27f57 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

Please sign in to comment.