home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nwnet
/
root
/
usr
/
lib
/
netcfg
/
list
/
ipx
/
ipx~
Wrap
Text File
|
1998-08-19
|
1KB
|
56 lines
#!/bin/sh
#
# Copyright (C) 1997, The Santa Cruz Operation, Inc.
# All Rights Reserved.
#
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#
#ident "@(#)ipx 1.2"
#
: ${OK=0} ${FAIL=1} ${RELINK=2}
PATH=/bin:/usr/bin:/etc:/etc/conf/bin:"$PATH"
IPX_NETCONFIGDIR=/usr/lib/netcfg/bin
NCFGPROMPTER=/usr/sbin/ncfgprompter
IPXCHK=$IPX_NETCONFIGDIR/ipx.chk
LOWER_PRD=$1
LOWER_IF=$2
UPPER_PRD=$3
UPPER_IF=$4
CONFIGURE=$5
. $IPX_NETCONFIGDIR/ipx.sh
#############################################################
# main
#
$IPXCHK
# Determine the media type(s) (ethernet, token-ring, etc.) and the interface
# type (DLPI+MDI or LLI) supported by the adapter. These variables are
# set by netconfig.
#
_adapter=/dev/$LOWER_PRD
get_adapter_info
# Ignore the exit code from the prompter, since it is OK for the user to
# exit out using either the ok or cancel buttons since we know no changes
# can be made.
$NCFGPROMPTER readonly ${IPX_NETCONFIGDIR}/ipxBE \
LIST \
$_adapter \
"$_media_types" \
$_interface \
> /dev/null
exit $OK