Can not connect wifi when booting without connecting cable. (Armbian)

I want to boot my Rock PiS only with wifi.
I added wifi connect script to rc.local file.
But if I boot my Rock PiS without wiring cable, I can’t connect my Rock PiS with wifi.
Then I connect the lan cable, I can connect with wifi.
I tried to add “ifconfig eth0 down” to rc.local file but it doesn’t work.
How can I boot and use wifi without connecting cable??
I am using Armbian.

I followed what it said.
Well, it is strange.
After succeed to connect wifi and wire connection and then I take off the wire, I also lose wifi connection.

If you would follow only our docs it will work automatically.

Thank you!
It works new armbian img.

I searched and found solution.

After install fresh armbian, I added this to “/etc/network/interfaces”

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet static
wireless-mode Managed
wireless-power off

And it also fixed wifi ip address.

1 Like