Update of /cvsroot/linux-decnet/dnprogs/apps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1684
Modified Files:
setether.sh
Log Message:
Add usage message
Index: setether.sh
===================================================================
RCS file: /cvsroot/linux-decnet/dnprogs/apps/setether.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** setether.sh 26 Mar 2002 11:02:07 -0000 1.5
--- setether.sh 30 Mar 2006 07:54:28 -0000 1.6
***************
*** 7,11 ****
#
# $1 - DECnet address in the usual area.node format
! # $2 - optional list of ethernet card names to set.
#
--- 7,11 ----
#
# $1 - DECnet address in the usual area.node format
! # $2 - List of ethernet card names to set or "all"
#
***************
*** 36,51 ****
}
! calc_ether $1
! if [ $? != 0 ]
then
exit 1
fi
! CARDS=$2
! if [ -z "$CARDS" ]
then
! exit 0
fi
if [ "$CARDS" = "all" -o "$CARDS" = "ALL" ]
then
--- 36,57 ----
}
! if [ -z "$2" ]
then
+ echo ""
+ echo "usage: $0 <decnet-addr> <network interfaces>|all"
+ echo ""
+ echo " eg. $0 1.9 eth0 "
+ echo " eg. $0 1.9 all"
+ echo ""
exit 1
fi
! calc_ether $1
! if [ $? != 0 ]
then
! exit 1
fi
+ CARDS=$2
if [ "$CARDS" = "all" -o "$CARDS" = "ALL" ]
then
|