1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 13:59:21 +02:00
openwrt-xburst/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
nbd 93701b2bec large init script cleanup and merge of whiterussian changes, new dnsmasq config handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-04-05 02:09:22 +00:00

11 lines
306 B
Plaintext

NAME=ez-ipupdate
CONFIG=/etc/$NAME.conf
COMMAND=/usr/sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
eval "ifname=\"\${${INTERFACE}_ifname}\""
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
} &
}