Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Run boot script without user intervention

Help
aptoklo
2012-04-17
2012-09-10
  • aptoklo
    aptoklo
    2012-04-17

    I have a small Windows XP Embedded appliance that I want to restore a g4l
    image to automatically during boot. I created a bootable USB memory stick with
    g4l on it. I have used this to boot the device via USB and successfully
    created an image of a partition using ntfsclone. I have also been able to
    restore this partition by starting g4l and going to the command line and
    running a script that does the restore.

    My question is:

    Is there a simple way to automate this process, so that the script is run
    automatically? I can append the "run" argument during boot, but the problem
    with this is that g4l dialog messages still load and block the user interface
    and confuse end users. Is there a simple way I can alter the g4l environment
    so that it does not load these dialog messages, but instead just first loads
    linux into the ramdisk as usual and then runs a specific script?

     
  • Well, I've been thinking about this for some time, but had never gotten around
    to doing it.

    Have done two new updates, that modify the rcS file so that it doesn't do the
    dialogs if there is a run line in the kernel.

    I disabled the dialogs for the displays and the bkey selection, but did leave
    the one were it checks for the nic connection.

    ftp://amd64gcc.dyndns.org/g4l0.41alpha/g4l-v0.41alpha31.iso

     
  • I did test this under virtual box run.

    With added run="top;reboot" it skips the dialogs, then shows top, and on
    exiting top it reboots.

     
  • aptoklo
    aptoklo
    2012-04-17

    Thanks, that's fantastic :)