Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: execute scripts at boot< Next Oldest | Next Newest >
max-ebb Offline





Group: Members
Posts: 22
Joined: Sep. 2004
Posted: Sep. 27 2004,23:55 QUOTE

it works like a charm, as everything else in DSL.
DSL is a gem, it never stops amazing me.
Back to top
Profile PM 
bprize Offline





Group: Members
Posts: 6
Joined: Oct. 2004
Posted: Oct. 14 2004,02:55 QUOTE

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.

--------------
---
My signature sucks.
Back to top
Profile PM 
bprize Offline





Group: Members
Posts: 6
Joined: Oct. 2004
Posted: Oct. 14 2004,03:10 QUOTE

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

--------------
---
My signature sucks.
Back to top
Profile PM 
softgun Offline





Group: Members
Posts: 120
Joined: Dec. 2004
Posted: Jan. 16 2005,19:03 QUOTE

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
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 16 2005,22:44 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
9 replies since Sep. 27 2004,07:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: execute scripts at boot

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code