Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > by-pkgid > 276c4c69ed5efcebe43ee6121194cf59 > files > 78

kernel22-2.2.20-9mdk.src.rpm

# 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