On 24-05-17 15:12, Nicolas Dechesne wrote:
On Wed, May 24, 2017 at 2:58 PM, Mike Looijmans <mike.looijm...@topic.nl> wrote:
I was wondering if there were better ways than handcrafting shell scripts to
do this on a headless embedded board?
If I put wpa-conf into /etc/network/interfaces it works, but blocks booting
for a long time if the wifi isn't there.
I've been using ifplugd combined with wired ethernet, and this also works
fine with wireless. Once wpa-supplicant connects to an access point, the
link reports up and DCHP can start.
Starting wpa_supplicant from the commandline runs fine:
/usr/sbin/wpa_supplicant -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -c
/etc/wpa_topic.conf -D
However, putting this line into a startup script (/etc/rc5.d/...) hangs. It
doesn't matter whether I start early or late, the wpa_supplicant just hangs
and waits and doesn't fork into daemon mode like it should. Tried setting
PATH and redirecting input, invoking through start-stop-daemon, but that
didn't help.
Appending an ampersand to the command makes the boot continue, but
wpa_supplicant doesn't work, it won't connect to the access point.
my 2 cents..
after going back and forth for some time, I am now always using
network-manager.. it has very handy command line utilities (nmcli and
nmtui) and is well integrated with systemd. that happens to work well
for me.
Does it work without systemd? Because usually I use mdev for hotplug to save
(drastically) on boot time and flash usage.
i want to believe that connman can do the same thing, but i have never
tried it much..
Same question there...
Kind regards,
Mike Looijmans
System Expert
TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijm...@topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
Join our presentation at Electronics & Applications 2017:
FPGA for real-time data processing, subject “Hardware platform for industrial
ultrasound steel plate Inspection” Topic Embedded Systems - Herman Kuster, 1st
June 10 AM
Visit http://eabeurs.nl/author/612884/ for more information
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core