On 05/27/2015 03:59 AM, Christian Mehlis wrote: > Hi Richard, > > I had this problem a moth ago with this board: > I found no solution so far... > > Christian
For now I have added a little script in the background that just watches for the link status using swconfig swconfig dev ag71xx-mdio.0 port 1 get link | grep -q up or swconfig dev ag71xx-mdio.0 port 1 get link | grep -q down Test the return for success/fail, then issue ifconfig eth0 up/down as appropriate, and netifd goes about doing what it should have done with the cable was yanked. Just an endless loop testing for link up first, since an extra ifconfig up on an already up IF will do nothing anyway, and I can't assume that it is going to be 'up' when the script first runs in the init process -Richard _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel