October 8th, 2001, 05:46 AM
Disabling rc.local on boot
Is there an argument you can supply to LILO on boot (as opposed to the default "mount") which will disable the rc.local file? Or another way of booting without execing this? Becuase I've gone and put a command in which hangs the system so I can't edit it out again once in the OS
October 12th, 2001, 02:15 PM
Ah found two solutions :-) Thought I'd share them with you all in case you accidentally bugger up your boot scripts too!
I either mounted the OS with "single" as an argument, which put it in single user mode and so stopped all the scripts that usually come after rc.M.
Or I mounted it with "shell=/bin/sh" as an argument, which loaded it straight into the shell without execing any of the boot scripts.
From here I could then amend the rc.local file :-)