<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 29, 2015 at 1:35 PM, Bastian Bittorf <span dir="ltr"><<a href="mailto:bittorf@bluebottle.com" target="_blank">bittorf@bluebottle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">* Peter Uithoven <<a href="mailto:peter@peteruithoven.nl">peter@peteruithoven.nl</a>> [29.06.2015 13:20]:<br>
<span class="">> We do a little bit of our own wifi config. We try to find (using scanlist)<br>
> known wifi networks and connect to them, when non appropriate are found we<br>
> create a accesspoint.<br>
> In the future, when connecting to a known networks fails it should also<br>
> become a accesspoint.<br>
<br>
</span>ok...then you can maybe with hotplug wait for ACTION='ifup'<br>
maybe something like this (will not work, but you get the idea)<br>
<br>
#!/bin/sh<br>
# hotplug-script:<br>
<br>
SCANNED='/your/path'<br>
MYCHANNELS='1 2 3 154 168'<br>
<br>
[ "$ACTION" = 'ifup' -a -e "$SCANNED" ] && {<br>
        scan_for_known_networks | while read NETWORK_SETTINGS ; do<br>
                connect $NETWORK_SETTINGS       # ssid, channel, pass etc.<br>
                rm $SCANNED<br>
        done<br>
}<br>
<br>
[ "$ACTION" = 'ifup' -a "$INTERFACE" = 'mywifi' ] && {<br>
        for CHAN in $MYCHANNELS; do<br>
                create_adhoc $CHAN<br>
                touch 'SCANNED'<br>
                wifi<br>
        done<br>
<span class="">}<br>
<br></span></blockquote><div>Thanks! I will look into this. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
> If I understand the OpenWRT wiki hotplug is replaced by procd?<br>
<br>
</span>no. netifd will start hotplug if an interface comes up.<br>
<br></blockquote><div>But, why does the wiki say this then? Is that info incorrect? Is netifd an exception? <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
bye, bastian<br>
</blockquote></div><br></div></div>