Automated edition of /etc/rc.local [ SOLVED ]
Posted: Mon Aug 22, 2011 9:35 pm
Hello everyone I am using Mint since a couple of month and I have some experience with bash scripting.
As you may know, /etc/rc.local ends with "exit 0". My challenge is to use a script that read rc.local and find where is "exit 0", then create a new line over it and put the code I want to be executed, saves the file and continue my script.
Do you think it is possible to create a script that would do this? How to do it?
Thanks for your help!
/st0de
As you may know, /etc/rc.local ends with "exit 0". My challenge is to use a script that read rc.local and find where is "exit 0", then create a new line over it and put the code I want to be executed, saves the file and continue my script.
Do you think it is possible to create a script that would do this? How to do it?
Thanks for your help!
/st0de