#!/bin/sh #burnerconfig is free software; you can redistribute it and/or modify #it under the terms of the GNU General Public License echo "hda:" ide_info /dev/hda echo "" echo "hdb:" ide_info /dev/hdb echo "" echo "hdc:" ide_info /dev/hdc echo "" echo "hdd:" ide_info /dev/hdd echo "" echo 'Which one is your cd\dvd burner?' read BURNER if test $BURNER != "hda" -a $BURNER != "hdb" -a $BURNER != "hdc" -a $BURNER != "hdd" then echo "You must enter hda or hdb or hdc or hdd" exit fi mv /etc/lilo.conf /etc/lilo.conf.bak LINE=`cat /etc/lilo.conf.bak | grep -n label -m 1 | cut --delimiter=: -f 1` cat /etc/lilo.conf.bak | head -n $LINE >> /etc/lilo.conf echo append=\"$BURNER=ide-scsi\" >> /etc/lilo.conf TMP=`wc -l /etc/lilo.conf.bak | awk '{print$1}'` LINE=`expr $TMP - $LINE + 1` cat /etc/lilo.conf.bak | tail -n $LINE >> /etc/lilo.conf lilo &> /dev/null echo '/sbin/modprobe ide-scsi' >> /etc/rc.d/rc.modules echo "" echo "Reboot the System to let the modifications take effect"