Hi.
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.
Can not connect wifi when booting without connecting cable. (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.
https://forum.armbian.com/topic/11320-auto-run-wifi-with-static-ip/
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
address 2.1.1.38
netmask 255.255.255.0
gateway 2.1.1.1
dns-nameservers 168.126.63.1 168.126.63.2
wireless-mode Managed
wireless-power off
And it also fixed wifi ip address.
1 Like