#!/bin/sh # This shell script is a wrapper for the standard HP-UX /etc/lanconfig # binary. It was installed as part of the Phobos Corporation H100 # fast ethernet driver install. The purpose of this script is to # call the standard lanconfig only if the interface name is not fe0. # If the interface name is fe0 then just return. # This will produce the output that SAM needs to handle the configuration # of the card. # if no args run hpux command for usage if [ $# -ne 0 ] then # if interface name not fe then run hpux command feinterface=`echo $1 | grep fe` if [ -z "$feinterface" ] ; then /etc/lanconfig.hpux $* exit 1 else # if query then give answer else just return if [ $# -eq 1 ] ; then echo "$feinterface: ether" exit 0 else exit 0 fi fi else /etc/lanconfig.hpux fi