#!/bin/sh # # manage network interfaces and configure some networking options # to install the script # update-rc.d networking-force10mbps start 20 2 3 4 5 . stop 20 0 1 6 . PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin if ! [ -x /sbin/mii-tool ]; then exit 0 fi case "$1" in start) mii-tool --force=10baseT-FD --log eth0 echo -n "Forcing eth0 at 10baseT-FD..." echo "done." ;; stop) echo -n "Forcing eth0 at 10baseT-FD..." echo "doing nothing." ;; force-reload|restart) mii-tool --force=10baseT-FD --log eth0 echo -n "Forcing eth0 at 10baseT-FD..." echo "done." ;; *) echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}" exit 1 ;; esac exit 0