Click to See Complete Forum and Search --> : boot script
caMehT
03-17-2001, 02:00 PM
i finally got my modem to work on linux, but i have to open a terminal and type setserial /dev/ttyS2 irq 5 uart 16550A every time i restart, because it gets reset when i shut down. how can i set up a script to do this for me at startup? :confused:
Bradmont
03-17-2001, 03:49 PM
simple solution: Don't reboot ;).
But yes, you can set it up in a bootscript. The scripts are in different locations in different distributions. Under Debian, put a file called S99something in /etc/rc2.d and /etc/rc3.d that contains the command. I'm not too sure about other distros. I *think* under redhat it's /etc/rclocal, or something like that. Maybe someone else can clarify this for you.
Golden_Eternity
03-17-2001, 05:21 PM
/etc/rc.local is the last file to be executed when a redhat system boots (and some other distros as well). You can put scripts in the init.d and rc?.d directories for a sysvinit style startup, but for something like this that wouldn't be necessary...
You could also put this line in your network startup script which would be in the init.d dir (/etc/rc.d/init.d/) in the start section, if you know a bit about shell scripts.