1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 10:58:27 +02:00
openwrt-xburst/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
2006-02-08 14:08:21 +00:00

7 lines
276 B
Plaintext

PGM=ez-ipupdate
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -e /etc/$PGM.conf ] && {
[ -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 &
}
}