On Fri, 2012-12-07 at 20:56 +0000, David Woodhouse wrote: > On Fri, 2012-12-07 at 12:34 -0800, Daniel Gimpelevich wrote: > > Index: target/linux/lantiq/base-files/etc/init.d/ifx-esi > > =================================================================== > > --- target/linux/lantiq/base-files/etc/init.d/ifx-esi (revision 0) > > +++ target/linux/lantiq/base-files/etc/init.d/ifx-esi (revision 0) > > @@ -0,0 +1,11 @@ > > +#!/bin/sh /etc/rc.common > > + > > +START=15 > > + > > +start() { > > + ethmac=`xargs -n 1 echo < /proc/cmdline | grep '^ethaddr=' | sed -e > > 's,ethaddr=,,' -e 's,:,,g'` > > + atmmac=`echo $ethmac | sed 's,......$,,'`$(printf '%06x' > > $((1+0x`echo $ethmac | sed 's,^......,,'`)) | sed 's,.*\(......\)$,\1,') > > + for atmdev in `ls /sys/class/atm`; do > > + esi $atmmac `echo $atmdev | sed 's,[^0-9]*\(.*\)$,\1,'` > > + done > > +} > > It'd be better to put that in /etc/hotplug.d/atm so that you don't have > to worry about the timing of when the atm driver loads at startup, and > it gets done properly if the driver is ever unloaded and reloaded, etc. >
OK, but hotplug never generates any atm events, so Felix suggested this instead. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel