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.

#!/bin/sh

# 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 <gael@linux-mandrake.com>

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

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

# 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
fi

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

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


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
/usr/bin/fixcmi

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


JavaScript DHTML Menu Powered by Milonic (License)
www.000webhost.com