#!/bin/sh # # simplest possible ifplugd script ;-) # . /etc/init.d/globals case $2 in up) ifup $1 | LOGINFO ;; down) ifdown $1 | LOGINFO ;; esac true