1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-13 20:30:37 +02:00
openwrt-xburst/openwrt/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 &
}
}