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 ]

new topic new poll
Topic: DSL v4.4.4, minor update< Next Oldest | Next Newest >
Gustav Offline





Group: Members
Posts: 22
Joined: Feb. 2007
Posted: Sep. 02 2008,19:19 QUOTE

Quote
* Added support for environment variable BACKUP=0 to change the default backup option in dslexit


The environment variable seems to be not working for me: I can't change the default backup option in dslexit, it always remains checked. This is how I added the BACKUP variable...
Code Sample
export BACKUP=0

I also tried adding that line to bootlocal.sh and adding BACKUP=0 in .xinitrc with no success. Should I add BACKUP=0 to the boot parameters?


--------------
"Imagination is more important than knowledge..." Albert Einstein
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 02 2008,20:54 QUOTE

bootlocal will not work.  If you use .xinitrc, make sure you place that line near the start of the file.  Also, make sure the # isn't there.

If you don't want to modify startup files, you could invoke dslexit with something like
Code Sample
BACKUP=0 dslexit
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 02 2008,22:49 QUOTE

.bash_profile is where you want to put your additional exports.

cat .bash_profile, you will see the IRCNICK export.

It is here that you should add

export BACKUP=0
export PRINTER=lp

and any other exports that you may need.

.bash_profile is executed once upon login.
.bashrc is executed each time a shell is opened.

You can as thehatsrule said prefix an export before the command. But for these exports I would recommend using standard *nix convention.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Sep. 02 2008,23:10 QUOTE

/etc/profile would be the best place since it is global imo... but it is not backed up by default afaik.
Back to top
Profile PM 
Gustav Offline





Group: Members
Posts: 22
Joined: Feb. 2007
Posted: Sep. 03 2008,01:33 QUOTE

Thanks guys for the info. I tried to add it to .xinitrc as stated in the DSL Wiki but ignored that .bash_profile also exports variables. I'll read carefully next time. :D

--------------
"Imagination is more important than knowledge..." Albert Einstein
Back to top
Profile PM 
9 replies since Aug. 10 2008,16:42 < Next Oldest | Next Newest >

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

Pages: (2) </ 1 [2] >/
new topic new poll
Quick Reply: DSL v4.4.4

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