56a054b4ac00150e43ee447af6f3d097a6e3a967
[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 }