#!/bin/sh
#
# Copyright 2002 Dell Computer Corp
#
# based on ks.cfg script by Amro Hatim
# Initial script: 2002-08-15 Hatim Amro
# Adopting for both ESG and CPG: 2003-03-25 Rez Kabir

#Common header items, import function definitions
DIR=$(dirname $0)
DIR=$(cd $DIR; pwd)



# ------------------------------------------------------------------------------
# Patching KUDZU for Intel and Broadcom Driver
# ------------------------------------------------------------------------------


    awk 'BEGIN { FS="\n"; RS="-"; ORS="" } { if ( ($2 !~ /NETWORK/) || ( ($2 ~ /NETWORK/) && ($6 !~ /unknown/ )))  { print $0 "-"  } }' /etc/sysconfig/hwconf > /etc/sysconfig/hwconf.1 
    #awk 'BEGIN { FS="\n"; RS="-"; ORS="" } { if ($8 !~ /14e4/) { print $0 "-" } }' /etc/sysconfig/hwconf > /home/mdhedhi/hwconf.1 

    sed '$d' /etc/sysconfig/hwconf.1 > /etc/sysconfig/hwconf
    rm /etc/sysconfig/hwconf.1
#    kudzu -q

# Add silent KUDZU configure flag for the very first boot
echo "KUDZU_ARGS=-q" >> /etc/sysconfig/kudzu
