Auto-Executing Shell Script on boot
Hey everyone.. I have a schell script written, which is right now /etc/profile.d/gateway.sh
The point of this script is to automatically execute all the commands needed to run Linux as a gateway for a WinXP machine. The problem is that every time I open a terminal or log in anywhere it executes Where can I put this file so that it'll be started ONLY on boot? Thanks in advance. |
In /etc/rc.local
~Sarav |
As any name?
example: /etc/rc.d/gateway.sh Or should I just add the code to one of the existing files in that directory? |
Quote:
/etc/rc.local is a file. You should call your script from that file. ~Sarav |
ahhhh I understand now
Thank you very much, it's working now :) |
No problem. Enjoy.
~Sarav |
All times are GMT -5. The time now is 10:47 AM. |