#!/bin/sh # new files installed by fe_install script # /etc/eisa/!TCM5970.CFG # /etc/lanscan # /etc/lanconfig # /usr/bin/fe_control # /usr/man/man1/fe_control.1 # HPUX orginal files left from the fe_install script # /etc/lanscan.hpux # /etc/lanconfig.hpux # /etc/conf/liblan.a.b4fe # /etc/master.b4fe # /etc/conf/dfile.b4fe if [ "$1" = "-cleanup" ] then cleanup="cleanup" else cleanup="" fi if [ -f /etc/eisa/\!TCM5970.CFG ] ; then rm -f /etc/eisa/\!TCM5970.CFG 2> /dev/null fi if [ -f /usr/bin/fe_control ] ; then rm -f /usr/bin/fe_control 2> /dev/null fi if [ -f /usr/man/man1/fe_control.1 ] ; then rm -f /usr/man/man1/fe_control.1 2> /dev/null rm -f /usr/man/cat1/fe_control.1 2> /dev/null fi if [ -f /etc/lanscan.hpux ] ; then mv /etc/lanscan.hpux /etc/lanscan 2> /dev/null fi if [ -f /etc/lanconfig.hpux ] ; then mv /etc/lanconfig.hpux /etc/lanconfig 2> /dev/null fi if [ -f /etc/conf/liblan.a.b4fe ] ; then mv /etc/conf/liblan.a.b4fe /etc/conf/liblan.a 2> /dev/null fi rm -f /etc/fescan #make sure its gone cp -p /etc/conf/liblan.a /etc/conf/liblan.a.bk 2> /dev/null ar -d /etc/conf/liblan.a if_fe.o 2> /dev/null if [ -f /etc/master.b4fe ] ; then mv /etc/master.b4fe /etc/master 2> /dev/null fi #make sure grep -v "fe fe" /etc/master > /etc/master_unfe mv /etc/master /etc/master.bk 2> /dev/null mv /etc/master_unfe /etc/master 2> /dev/null if [ -f /etc/conf/dfile.b4fe ] ; then mv /etc/conf/dfile.b4fe /etc/conf/dfile 2> /dev/null else grep -v fe /etc/conf/dfile > /etc/conf/dfile_unfe 2> /dev/null mv /etc/conf/dfile /etc/conf/dfile.bk 2> /dev/null mv /etc/conf/dfile_unfe /etc/conf/dfile 2> /dev/null fi if [ -n "$cleanup" ] then exit 0 fi echo "Rebuild kernel without FE driver and reboot? (y/n) [n]" read y case $y in yes|YES|y|Y) : ;; n|N|no|NO|"") exit ;; *) : esac # config the kernel cd /etc/conf /etc/config dfile # build /bin/rm -f hp-ux /bin/make -f config.mk if [ ! -f /etc/conf/hp-ux ] then echo "$0: Error building new kernel - stopping" exit fi # put in place - saving old kernel echo "Ready to install new kernel and reboot? (y/n) [y]" read y case $y in yes|YES|y|Y|"") : ;; n|N|no|NO) exit ;; *) : esac /bin/cp /hp-ux /SYSBKUP /bin/cp hp-ux /hp-ux /bin/sync /bin/sync /etc/reboot