# modules whose names have changed get dealt with here if [ -f /etc/modules.conf -o -r /etc/conf.modules ] ; then [ -f /etc/conf.modules -a ! -f /etc/modules.conf ] && \ mv -f /etc/conf.modules /etc/modules.conf TMP=$(mktemp /tmp/modules.XXXXXX) || \ { echo "could not create temporary file" ; exit 1 ; } sed '/scsi_hostadapter/s/\(perc\|hpn\)raid/aacraid/g' < /etc/modules.conf > $TMP || \ { echo "sed failed attempting to modify modules.conf" ; exit 1 ; } cat $TMP > /etc/modules.conf || \ { echo "cat failed attempting to overwrite modules.conf" ; exit 1 ; } rm -f $TMP fi