Removed init script as there is an hotplug one, check whether user configuration...
[openwrt/svn-archive/archive.git] / openwrt / package / ez-ipupdate / files / ez-ipupdate.hotplug
1 PGM=ez-ipupdate
2 [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
3 [ -e /etc/$PGM.conf ] && {
4 [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f1) ] && [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f2) ] && /usr/sbin/$PGM -c /etc/$PGM.conf &
5 }
6 }