On 04/06/2014 15:15, Bastian Bittorf wrote:
> while writing the hotplug-thingy for OLSRd2, i have issues:
>
> according to http://wiki.openwrt.org/doc/techref/hotplug the var
> $INTERFACE is the name (given by user, e.g. 'mylan') and $DEVICE is
> the real physical one (e.g. 'eth0.1').
>
> but i can see 'ifup'-events with INTERFACE = 'cfg0f4d8f'. this
> makes problems here. In fact this is the loopback-interface.
>
> now i have to traverse back via $DEVICE, e.g.:
>
> # lo -> loopback ifname="$( uci show network | grep
> "\.ifname=${DEVICE}"$ | cut -d'.' -f2 )"
>
> how i can make this better?
>
> bye, bastian
hi bastian,
i am working right now on an update for procd that will allow you to
hook a iface dependency to a procd managed process
you can in future do a
procd_add_param interface wan /etc/init.d/mydaemon reload
this will cause said script to be run on every iface change
notification generated by netfid. i expect to have this ready by the
weekend.
you also have to be patient for a few days aswell :) i am working as
fast as i can here ... :)
we are also almost done with the ubi/nand foo (my wndr4300 just
arrived yAy! )
and we will push the new umdns daemon aswell in the next couple of days
John
> _______________________________________________
> openwrt-devel mailing list [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel