| Technical.TivoHowToEditStartupScript | AdamAndLiz > Technical > TiVo > TivoHowToEditStartupScript | ||
|
| |||
|
|
The file is called rc.sysinit and it lives in /etc/rc.d
In order to edit rc.sysinit, the file system must first of all be place in read/write mode, the file can then be edited. Finally the file system must be placed back in read only mode.
The file is best edited with vi (see TiVoElvisConfiguration and TiVoHowToUseElvis). First of all, place the partition in read/write mode - cd /etc/rc.d mount -o rw -o remount /
Next, make a backup copy VERY IMPORTANT - YOU MIGHT STUFF IT UP!! dir cp rc.sysinit rc.sysinit.recent
You can now edit the file ==vi rc.sysinit== Make your modification, save it and make the paqrtition read only. sync mount -o ro -o remount /
If you accidentally stuff up your rc.sysinit file, you can copy it back from the backup you made (you did make one didn't you?)Before making the partition read only, enter the following to put it back. mv rc.sysinit rc.sysinit.stuffed mv rc.sysinit.recent rc.sysinit
Note it is worth practicing your editing skills on a copy of the file first of all, so you get the hang of how the editor works, as it is very easy to make a mistake!
-- AdamWhite - 27 Nov 2003 |
|
| |||
| Revision r1.3 - 01 Dec 2003 - 11:12 GMT - AdamWhite | Copyright © 2003 by the contributing authors. Send feedback. | ||