#!/bin/sh

set -e

# Interfaces this action applies to. ifplugd passes the triggering
# interface as $1; the action is only executed when $1 is one of these.
# Events for any other interface are ignored.
INTERFACES=""

# Skip unless the triggering interface ($1) is in our list.
case " $INTERFACES " in
    *" $1 "*) ;;        # $1 is listed -> continue
    *) exit 0 ;;        # not listed   -> do nothing
esac

case "$2" in
up)
        /sbin/ifup $1
        ;;
down)
        /sbin/ifdown $1
        ;;
esac
