PDA

View Full Version : rc.local



TheCyberDude
06-19-2003, 07:08 PM
I set up an rc.local file to load my modem drivers on
boot-up. Howerever I can't get sudo chmod a+rw /dev/modem to work.

# Install Intel Modem Drivers & Set Permissions
sudo chmod a+rw /dev/Modem
sudo chmod a+rw /dev/ttyS2
cd /lib/modules/2.4.20-xfs/kernel/drivers/char
insmod -f 536epcore.o
insmod -f 536ep.o

I thought sudo would work, how would you su + Password -
to chmod a+rw /dev/modem .

I tried chmod 1777 /dev/modem from an terminal, but the sticky bit was gone when I rebooted!

Thanks....

TheCyberDude
06-19-2003, 07:15 PM
OK, this works !!!

# Install Intel Modem Drivers & Set Permissions
su -c "chmod a+rw /dev/Modem"
su -c "chmod a+rw /dev/ttyS2"
cd /lib/modules/2.4.20-xfs/kernel/drivers/char
insmod -f 536epcore.o
insmod -f 536ep.o

Good Luck...

TheCyberDude
06-24-2003, 06:27 AM
You don't need an rc.local, you can use /etc/init.d/bootmisc.sh
to enter the information.

pau1knopp
06-24-2003, 02:54 PM
Will /etc/init.d/bootmisc.sh let me run privileged services such as apache, mysql, ntpdate, etc? If so, this is what I have been looking for in debian. rc.local is a redhat thing, and was very handy for easily setting up autoexec.bat items on a linux boxen

Regards,

~paul

Stephen
06-24-2003, 03:59 PM
Will /etc/init.d/bootmisc.sh let me run privileged services such as apache, mysql, ntpdate, etc? If so, this is what I have been looking for in debian. rc.local is a redhat thing, and was very handy for easily setting up autoexec.bat items on a linux boxen

Regards,

~paul

Certainly will that's how I start apache, my firewall, set my hdparm, etc...