1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-20 21:49:55 +02:00
openwrt-xburst/package/ez-ipupdate/files/ez-ipupdate.hotplug
florian 56add57f29 Removed init script as there is an hotplug one, check whether user configuration directive is properly set, change the numbering to 10 rather than 15
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3189 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 &
}
}