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

11 lines
306 B
Plaintext
Raw Normal View History

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