execute scripts at bootForum: User Feedback Topic: execute scripts at boot started by: max-ebb Posted by max-ebb on Sep. 27 2004,07:16
I use DSL and save my configuration on a USB flash memory.Is there a way to automate the execution of some configuration scripts at boot time either by saving them on the USB flash or using cheatcodes? Posted by henk1955 on Sep. 27 2004,07:23
edit /opt/bootlocal.shyou can have your scripts running at boottime if you put them in /opt/bootlocal.sh btw. if you start dsl, a DILLO opens with the page "Getting Started With DSL Version 0.8.1" if you read it it explains in "Saving Your Configuration." how it works. if you still have questions, come back. Posted by max-ebb on Sep. 27 2004,22:48
i know this is a silly question, but how do I edit /opt/bootlocal.sh if the CD is read only?should i edit the file while I have my master copied onto the hard disk in the remastering process? or I have to edit the file and save it on my USB flash drive? Posted by ke4nt1 on Sep. 27 2004,23: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 Posted by max-ebb on Sep. 27 2004,23:10
man, that was a FAST feedback, let me try it right now and get back to you
Posted by max-ebb on Sep. 27 2004,23:55
it works like a charm, as everything else in DSL.DSL is a gem, it never stops amazing me. Posted by bprize on Oct. 14 2004,02:55
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.
Posted by bprize on Oct. 14 2004,03:10
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!
Posted by softgun on Jan. 16 2005,19:03
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 Posted by mikshaw on Jan. 16 2005,22:44
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.
|