#1
  1. Wacky hack
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2001
    Location
    London, England
    Posts
    513
    Rep Power
    14

    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
  2. #2
  3. Wacky hack
    Devshed Novice (500 - 999 posts)

    Join Date
    Apr 2001
    Location
    London, England
    Posts
    513
    Rep Power
    14
    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 :-)

IMN logo majestic logo threadwatch logo seochat tools logo