View Single Post
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#25
Originally Posted by 2disbetter View Post
Inside of the preint file, would I add the selected portion before, after, or in between the brackets? Secondly does the location of the above snipet matter?
The code excerpt is sort of in patch format.

What it means is that you should find the existing lines reading

echo_g "Houston, we have a problem, powering off..."
def_runlevel=0
("Houston" only occurs once in that file, so you can just search for that to find these lines.)

Then you put the new lines (indicated by '+') between them, so that it would read:

echo_g "Houston, we have a problem, powering off..."
sleep 10
poweroff
def_runlevel=0
when you're done.

Edit: Note, the '+' sign is only to indicate which lines are added, it shouldn't be actually put in the file.

Last edited by kwotski; 2009-12-16 at 21:39.
 

The Following 3 Users Say Thank You to kwotski For This Useful Post: