#!/bin/sh # This shell script is a wrapper for the standard HP-UX /etc/lanscan # 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 lanscan and then call Phobos's fe_control. # This will produce the output that SAM needs to handle the configuration # of the card. if [ ! -f /etc/lanscan.hpux ] then echo "Phobos lanscan error" exit fi #run only the HP command if any arguments given if [ $# -ne 0 ] then /etc/lanscan.hpux $* exit else /etc/lanscan.hpux fi if [ -f /etc/fescan ] then list="0 1 2 3 4 5 6 7" for nic in $list do #check to make sure fe0 card is present fe=`/etc/ifconfig fe$nic 2> /dev/null` if [ -z "$fe" ] then continue fi #check to see if card has been config-ed fe_state=`echo $fe | /bin/grep inet` if [ -z "$fe_state" ] then #if not config-ed then do it so fescan can run /etc/ifconfig fe$nic inet 0.0.0.1 netmask 255.255.255.254 down fi done /etc/fescan fi