Supplying configuration file via bash

Etan Kissling kissling at oberon.ch
Tue Sep 20 02:07:35 PDT 2016


Greetings,

I'd like to start hostapd without a stored configuration file from a script.
Is it possible to do that, e.g. with config as a heredoc, similar to the following snippet?

sudo hostapd -dd <<EOF
interface=wlan0
driver=nl80211

ssid=Test
country_code=CH
hw_mode=g
channel=6
vendor_elements=DD0511223344
EOF

What's the preferred way of launching the process in foreground and supplying a dynamic configuration?

Thanks

Etan




More information about the Hostap mailing list