#! /sbin/sh
########
# Product: NETWORKING
# Fileset: NET-KRN
# postinstall
# @(#) $Revision: 1.3.98.1 $
########
#
# (c) Copyright Hewlett-Packard Company 1993
#
########################################################################


    UTILS="/usr/lbin/sw/control_utils"
    if [ -f $UTILS ]
    then
        . $UTILS
    else
        echo "ERROR:   Cannot find $UTILS"
        exit 1
    fi

    exitval=$SUCCESS                   # Anticipate success


########################################################
# Only modify the system file on the root file system. #
# If this is an NFSdiskless installation, or alternate #
# root, then configure will handle it.                 #
########################################################

if [[ $SW_ROOT_DIRECTORY = "/" && -z "${SW_DEFERRED_KERNBLD}" ]]
then
    
    ########################################
    #                                      #
    # Place any drivers into /stand/system #
    #                                      #
    ########################################
    
    for driver in inet \
                  uipc \
                  nm \
                  ni \
		  tpiso \
		  inet_cots \
		  inet_clts

        # Place your drivers here.
    do
        mod_systemfile ${SW_SYSTEM_FILE_PATH} -a "$driver"
        if [[ $? -ne 0 ]]
        then
            print "ERROR:   Cannot update ${SW_SYSTEM_FILE_PATH} to include"
            print "         $driver ($FILESET functionality)."
            exitval=$FAILURE 
        fi
    done
    
    ########################################
    #                                      #
    # Remove drivers into /stand/system    #
    #                                      #
    ########################################
    
    for driver in netman \
        # Place your drivers here.
    do
        mod_systemfile ${SW_SYSTEM_FILE_PATH} -d "$driver"
        if [[ $? -ne 0 ]]
        then
            print "ERROR:   Cannot update ${SW_SYSTEM_FILE_PATH} to remove"
            print "         $driver ($FILESET functionality)."
            exitval=$FAILURE 
        fi
    done
    
fi      # end of "if [[ -z ${SW_DEFERRED_KERNBLD}" ]]


exit $exitval

