View Single Post
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#3544
Originally Posted by dimkit View Post
this is excellent Can you please help me , how do i run the script ?
I copy paste all these commands on x-terminal? or there is something else i have to do?
You copy it into a file.. and then "chmod +x" and den "./file.sh"

1. become root (need rootsh installed)
root

2. Make a directory if you haven't
mkdir /home/opt/scripts

3. Make file (need leafpad)
leafpad /home/opt/scripts/oc-safty.sh (paste into file and save)

4. make it executable
chmod +x /home/opt/scripts/oc-safty.sh

5. got to dir
cd /home/opt/scripts/

6. Run it
./oc-safty.sh

You could probably put it in init.d to make it run automatically every reboot. But am not sure exactly how to do that.

Last edited by AlMehdi; 2010-05-10 at 18:13.