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,07:16 QUOTE

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





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 27 2004,07:23 QUOTE

edit /opt/bootlocal.sh
you 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.


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
max-ebb Offline





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

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





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Sep. 27 2004,23:04 QUOTE

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





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

man, that was a FAST feedback, let me try it right now and get back to you
Back to top
Profile PM 
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