[OpenWrt-Devel] Fwd: iwinfo lua scanlist issue

Peter Uithoven peter at peteruithoven.nl
Mon Jun 29 09:15:55 EDT 2015


On Mon, Jun 29, 2015 at 1:35 PM, Bastian Bittorf <bittorf at bluebottle.com>
wrote:

> * Peter Uithoven <peter at peteruithoven.nl> [29.06.2015 13:20]:
> > We do a little bit of our own wifi config. We try to find (using
> scanlist)
> > known wifi networks and connect to them, when non appropriate are found
> we
> > create a accesspoint.
> > In the future, when connecting to a known networks fails it should also
> > become a accesspoint.
>
> ok...then you can maybe with hotplug wait for ACTION='ifup'
> maybe something like this (will not work, but you get the idea)
>
> #!/bin/sh
> # hotplug-script:
>
> SCANNED='/your/path'
> MYCHANNELS='1 2 3 154 168'
>
> [ "$ACTION" = 'ifup' -a -e "$SCANNED" ] && {
>         scan_for_known_networks | while read NETWORK_SETTINGS ; do
>                 connect $NETWORK_SETTINGS       # ssid, channel, pass etc.
>                 rm $SCANNED
>         done
> }
>
> [ "$ACTION" = 'ifup' -a "$INTERFACE" = 'mywifi' ] && {
>         for CHAN in $MYCHANNELS; do
>                 create_adhoc $CHAN
>                 touch 'SCANNED'
>                 wifi
>         done
> }
>
> Thanks! I will look into this.


> > If I understand the OpenWRT wiki hotplug is replaced by procd?
>
> no. netifd will start hotplug if an interface comes up.
>
> But, why does the wiki say this then? Is that info incorrect? Is netifd an
exception?


> bye, bastian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150629/1ed9d098/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list