Wireless settings don't survive reboot
#1
Mon, 2016-05-23 02:39
dbabits
-
- Offline
- 1 year 10 months ago
- 2016-05-23
I followed instructions on this page, which work, but don't survive reboot:
https://wiki.alpinelinux.org/wiki/Connecting_to_a_wireless_access_point
wpa_supplicant exits with this message in /var/logs/messages:
Jan 1 00:00:11 alpine daemon.err /etc/init.d/wpa_supplicant[1102]: ERROR: wpa_supplicant failed to start Jan 1 00:00:12 alpine daemon.info init: starting pid 1220, tty '': '/sbin/rc default' Jan 1 00:00:12 alpine daemon.warn openrc[1220]: WARNING: clock skew detected! Jan 1 00:00:12 alpine daemon.err /etc/init.d/wpa_supplicant[1240]: start-stop-daemon: failed to start `/sbin/wpa_supplicant' Jan 1 00:00:12 alpine daemon.err /etc/init.d/wpa_supplicant[1222]: ERROR: wpa_supplicant failed to start
Every time after reboot, I execute commands referenced at the WIki link above, and then everything works.
I'm running Raspberry Pi 2, and have followed installation instructions at that page.
I do not forget lbu commit
alpine:~$ sudo rc-update .... udhcpd | boot wpa_supplicant | boot
Has you followed this part? :
Also check your /etc/network/interfaces file.
Yes, I followed all parts, and it works when executing manually. wpa_supplicant fails to start on reboot without any detailed error.
Here it is working (and I am using diskless mode too), so something is wrong with your configuration.
One thing I can think of is dbus. I believe it needs to start before wpa_supplicant at boot.
Try rc-update add dbus then lbu ci and reboot.
This is my complete rc-update:
I added dbus, but it didn't help.
Should it be at default level or boot level?
This is what I have to do manually every time after boot to activate wireless:
Please could you also post your
/etc/network/interfaces
? Perhaps the problem is there.Maybe udhcpc times out and it does not get a lease. Try:
Thanks, but it did not help.
Can we see more output from wpa_supplicant? Start it with the -dd flag from the init script.
Also, how does this behave?
rc-update del wpa_supplicant
reboot
rc-service wpa_supplicant start