User Feedback :: execute scripts at boot



it works like a charm, as everything else in DSL.
DSL is a gem, it never stops amazing me.

I think I'm an idiot.  I've been trying to create a backup for a few hours now.  I've edited filetool.1st, bootlocal.sh, & powerdown.sh.  Each time I shut down, I get nothing...nada...zip...zilch.  What the heck am I doing wrong?  Am I just stupid or what?  I get "Invalid device /mnt/hda1" (or /mnt/hdb1 or /mnt/floppy) .  Do I need to remount the device that I want to backup to in powerdown.sh then after it backs up unmount it?  I'm running it from a boot floppy and USB stick.
OK...I really am a douche.  I didn't realize that I had to just put the device name, not the entire mount path.  learn from my mistakes! :O
Quote (ke4nt1 @ Sep. 27 2004,19:04)
The /opt directory is writable .. as root user ..
It's actually writing to a substitute COPY which is in ramspace..

Once you have edited and saved the file to your liking,
make sure the text ' opt/bootlocal.sh ' is in your home/dsl/filetool.list file ..

Then when you create a backup to wherever you choose to keep backups,
your edited copy of bootlocal.sh will be saved in the backup..

When you restart your liveCD , include the text
' dsl restore=sda1 ', or wherever you keep backups ..
Then upon booting up, the saved bootlocal.sh will
overwrite the read-only copy on the cd.

This procedure works with most ANY file you can edit ..

73
ke4nt

What i want to do is to put the script into the cd itself and get it to start at bootup, without using the usb pen drive.
Can i write it to the root part of the cd and burn it and get it to start off at boot?
This feature will be really useful.....

Is that possible?

Thanks for your help

Yes.  Any archive with the extension .dsl or .tar.gz which is placed in the root of the CD will automatically be extracted during the boot process.  Just make sure your archive includes the proper full paths as well as proper ownerships for the files and directories.
Next Page...
original here.