Lost rc.local file

Discussion in 'Linux' started by swashplate, Mar 21, 2009.

  1. swashplate

    swashplate

    Joined:
    Mar 21, 2009
    Messages:
    2
    Likes Received:
    0
    Hello,

    I am using an Acer Aspire One with Linpus Linux lite version 1.0.15.E

    I have accidentally deleted my 'rc.local' file from my /etc folder on the harddrive. :roll:

    Will the system reboot OK, or do I need to reinstall this file? I can't find the original file anywhere online and it's not on the system recovery disk either.

    Anyone any ideas?
     
    swashplate, Mar 21, 2009
    #1
  2. swashplate

    dgdimick

    Joined:
    May 18, 2009
    Messages:
    17
    Likes Received:
    0
    Location:
    Los Alamos, NM - USA
    Your system will boot OK, the only thing is any changes you made to rc.local will need to be readded. If you just want to re-create rc.local enter these commands:

    sudo -s (you will be asked for your password)
    touch /etc/rc.local

    This will recreate a "clean" rc.local file

    The only "real" commands you need in rc.local are:

    #!/bin/sh

    exit 0

    Any applications, or scripts you want to run after startup, just add before the "exit 0"

    Denis
     
    dgdimick, May 22, 2009
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.