#!/bin/sh HOTPLUG_DIR=/etc/hotplug if [ -f /etc/default/hotplug ]; then . /etc/default/hotplug fi if [ -x /usr/bin/logger ]; then LOGGER=/usr/bin/logger elif [ -x /bin/logger ]; then LOGGER=/bin/logger else unset LOGGER fi # # for diagnostics # if [ -t 1 -o -z "$LOGGER" ]; then mesg () { echo "$@" } else mesg () { $LOGGER -t $(basename $0)"[$$]" "$@" } fi debug_mesg () { test "$DEBUG" = "" -o "$DEBUG" = no && return mesg "$@" } mesg "Running in $0 `pwd` " ifconfig usb0 192.168.0.200 echo 1 > /proc/sys/net/ipv4/ip_forward