Add a script:
1. put the script under /etc/init.d/
2. #chmod 755 myscript
3. #update-rc.d myscript defaults
4. #reboot
-------------------------------------------------------
Remove :
1. #cd /etc/init.d/
2. #update-rc.d -f myscript remove
3. #reboot
more over , please use "man update-rc.d" command
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment