My /etc/rc.d/rc.local File

I have added the setserial command at the end so that my modem gets correctly configured every time I boot Linux. My Diamond Supra-express 56i Sp internal modem takes up COM3. I have also added the fixcmi program at the end, which enables audio CD playing on my CMI8330 based Sound-Pro audio card, and the command to play a sound when the system has booted.


# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
# modifier November 16 - Gaël Duval <>

if [ -f /etc/mandrake-release ]; then
R=$(cat /etc/mandrake-release)

arch=$(uname -m)
case "_$arch" in
_a*) a="an";;
_i*) a="an";;

# This will overwrite /etc/issue at every boot. So, make any changes you
# want to make to /etc/issue here or you will lose them when you reboot.

echo "" > /etc/issue

if [ -f /usr/bin/linux_logo ]; then
/usr/bin/linux_logo -c -n -o 2 >> /etc/issue
echo "" >> /etc/issue

echo "Linux Mandrake $R" >> /etc/issue

echo "" > /etc/
echo "Linux Mandrake $R" >> /etc/
echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/

echo >> /etc/issue

# Set the serial port COM3 characteristics for Modem
setserial /dev/modem port 0x03e8 irq 12 uart 16550a

#enable audio CD port on Sound Card

#give an audio indication that the system is up
cat /etc/sounds/ > /dev/audio &

JavaScript DHTML Menu Powered by Milonic (License)