#!/bin/sh
# This script is executed as part of the hotplug event with
# HOTPLUG_TYPE=iface, triggered by various scripts when an interface
# is configured (ACTION=ifup) or deconfigured (ACTION=ifdown).  The
# interface is available as INTERFACE, the real device as DEVICE.

[ ${INTERFACE:$((${#INTERFACE}-2))} == "v6" ] && exit 0
[ "$DEVICE" == "lo" ] && exit 0

. /lib/functions.sh
. /lib/ipgroup/core_ipgroup.sh
#. /lib/ipgroup/core.sh

#ipgroup_init

case "$ACTION" in
	ifup | ifdown | ifupdate)
		ipgroup_load_default_ifaces_set
		#ipgroup_interface_event
	;;
esac
