#!/bin/sh ############################################################################## # $Id: force_100_fdx,v 1.1 2002/03/21 19:07:23 root Exp $ ############################################################################## # Add lines to /etc/system to force an interface to 100 Mb, full duplex ############################################################################## # $Log: force_100_fdx,v $ # Revision 1.1 2002/03/21 19:07:23 root # Initial revision # ############################################################################## echo echo "Start of $0" echo ' $Id: force_100_fdx,v 1.1 2002/03/21 19:07:23 root Exp $' BASE=/a if [ -z "$1" ] then echo " No interface type specified" >&2 exit fi echo " Adding lines to /etc/system to force $1 interfaces to 100 Mb, full duplex" cp -p $BASE/etc/system $BASE/etc/system.orig echo "set $1:adv_autoneg_cap=0" >> $BASE/etc/system echo "set $1:adv_100T4_cap=0" >> $BASE/etc/system echo "set $1:adv_100fdx_cap=1" >> $BASE/etc/system echo "set $1:adv_100hdx_cap=0" >> $BASE/etc/system echo "set $1:adv_10fdx_cap=0" >> $BASE/etc/system echo "set $1:adv_10hdx_cap=0" >> $BASE/etc/system echo "End of $0"