#!/bin/sh # # simplest possible ifplugd script ;-) # LOG="logger -t ${0##*/}" case $2 in up) ifup $1 | $LOG ;; down) ifdown $1 | $LOG ;; esac true