#!/bin/sh ETH0_IF="eth0" up_eth0() { sh /etc/hotplug/start-dhcp-manual.sh #ifconfig $ETH0_IF 192.168.1.10 up } down_eth0() { ifconfig $ETH0_IF down } case "${ACTION}" in add) up_eth0 ;; remove) down_eth0 ;; esac