Ask Your Question

Revision history [back]

Hi ! I think it's because the OpenWRT's eth0 is bridged by default, so you would have to refer to 'br-lan' here:

i = $(ifconfig br-lan|grep 'inet addr'|awk -F: '{print $2}'| awk '{print $1}')