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
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to