summaryrefslogtreecommitdiff
path: root/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
blob: eb7ab326c47babc03890a000883056f4d6008dcf (plain)
1
2
3
4
5
6
7
8
9
10
. /etc/functions.sh
NAME=ez-ipupdate
CONFIG=/etc/$NAME.conf
COMMAND=/usr/sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
        [ -x $COMMAND ] && [ -r $CONFIG ] && {
                IFNAME=$(nvram get ${INTERFACE}_ifname)
                $COMMAND -c $CONFIG -i $IFNAME 2>&1 | logger -t $NAME
        } &
}