Skip to content

Commit

Permalink
Fix broken wlan0 interface config
Browse files Browse the repository at this point in the history
An interface in static mode is required to have an address defined,
otherwise ifup will throw an error and fail to bring the interface up.
The Debian wiki provided the pre-up/post-down solution:
https://wiki.debian.org/NetworkConfiguration#Bringing_up_an_interface_without_an_IP_address

Signed-off-by: llamasoft <llamasoft@rm-rf.email>
  • Loading branch information
llamasoft committed Oct 3, 2022
1 parent 889ddab commit ea827a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/data/etc/network/interfaces.d/wlan0-cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
allow-hotplug wlan0
iface wlan0 inet static
iface wlan0 inet manual
pre-up ifconfig $IFACE up
post-down ifconfig $IFACE down

0 comments on commit ea827a4

Please sign in to comment.