Update of /cvsroot/linux-decnet/dnprogs/apps
In directory usw-pr-cvs1:/tmp/cvs-serv8052
Modified Files:
setether.8 setether.sh
Log Message:
Set the default ethernet interface to be the first one encountered.
Index: setether.8
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/apps/setether.8,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** setether.8 2001/03/01 13:17:19 1.1
--- setether.8 2001/10/16 15:00:42 1.2
***************
*** 28,31 ****
--- 28,35 ----
setether will enable (UP) all interfaces it changes the MAC addresses of.
.br
+ (2.4 only) The first interface specified on the command-line will also be made
+ the default interface for DECnet operations (ie attempts to contact nodes not
+ in the neighbour table will be done over this interface).
+ .br
This script must be run with the interface inactive, it is normally run from
/etc/init.d/decnet before TCP/IP starts up.
Index: setether.sh
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/apps/setether.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** setether.sh 2001/09/01 19:07:26 1.3
--- setether.sh 2001/10/16 15:00:42 1.4
***************
*** 48,54 ****
--- 48,60 ----
fi
+ set_default=""
for i in $CARDS
do
ifconfig $i hw ether $MACADDR allmulti up
+ if [ -z "$set_default" -a -f /proc/sys/net/decnet/default_device ]
+ then
+ echo $i >/proc/sys/net/decnet/default_device
+ set_default="DONE"
+ fi
done
|