• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

making scripts

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.
Isn't that dependent on the distro and the way it boots as well? The answer may be more than one...
 
Yes, the startup scripts vary between distros. If you're using a distro based on Red Hat, /etc/rc.local is a good place to put general scripts. They are run after everything else is done on boot, though.

If you want to run a script everytime a user starts X, you can put it in the ~/.xinitrc file.
 
It may be a bit dirty, but you can also symlink scripts into the /etc/rc#.d directories if you don't have an rc.local. For example rc5.d is for scriopts that start when you boor into graphical mode, and rc2.d or rc3.d are for scripts that run when you boot into text mode.

Try searching for "shell scripts tutorial" on google. There's also a sticky in this forum with some basic information.
 
Back