#!/bin/sh
#
#erwartet als erstes Argument start oder stop als zweites eth0 bzw. eth1...
. /etc/functions_net

if [ $# -eq 0 ]; then
 echo "usage: $0 start eth0 or $0 stop eth0"
 exit 0
fi
if [ "$2" = "" -o "$1" != "start" -a "$1" != "stop" ]; then
 echo "usage: $0 start eth0 or $0 stop eth0"
 exit 0
fi
if [ $1 = start ]; then
 netsetup $2
fi
if [ $1 = stop ]; then
 ifconfig $2 down
fi
