1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-21 01:49:53 +02:00
openwrt-xburst/package/ez-ipupdate/files/ez-ipupdate.hotplug

7 lines
276 B
Plaintext
Raw Normal View History

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 &
}
}