#1 Wrong interface number

open
nobody
None
5
2009-04-20
2009-04-20
Ivan
No

The interface number in aap_checkjoin is hardcoded to eth1. It is different on some models. I suggest to be retrieved from nvram.
I replaced the following line:
udhcpc -i eth1 -p /tmp/var/run/udhcpc.pid -s /tmp/udhcpc > /dev/null 2>&1 &
with this one
udhcpc -i $(nvram get wl0_ifname) -p /tmp/var/run/udhcpc.pid -s /tmp/udhcpc > /dev/null 2>&1 &
Now it works like a charm.

Discussion