#!/bin/sh

cd /etc/hotplug

case $ACTION in
  add|register)
    case $INTERFACE in
      # interfaces that are registered after being "up" (?)
      ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|tun*|tap*|cip*)
      exit 0
      ;;
      # interfaces that are registered then brought up
      *)
      # NOTE:  network configuration relies on administered state,
      # we can't do much here without distro-specific knowledge
      # such as whether/how to invoke DHCP, set up bridging, etc.
      /sbin/ifconfig $INTERFACE up
      ;;
    esac
    ;;

  *)
    exit 1
  ;;
esac