summaryrefslogtreecommitdiffstats
path: root/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
blob: c305458b1a632ce0ff53894df5ebb7f30e184219 (plain)
1
2
3
4
5
6
7
8
9
10
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
        } &
}