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: mydsl-load idiot valve< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 10 2007,12:12 QUOTE

That sounds like it's kinda similar to the way I handle mc and vim. My vim command, for example, is a script that tests for the existence of the executable /opt/vim/bin/vim, and if that succeeds it is used as my editor. The difference is that instead of installing the package if the test fails, it just falls back on /usr/bin/vi

I suppose that could only work if as long as the uci provided a replacement for an application already available in DSL. In your case there is nothing in DSL that could take the place of wine, so you're forced either to load the wine package or fail. Keep in mind that unless you remember to keep the wine uci in the same place all the time, with the same filename, you are still apt to fail in some cases, such as when swapping drives or using portable devices. It might be worth doing a check for the existence of the uci package itself before running mydsl-load...maybe even checking each available partition?


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: Oct. 12 2007,02:52 QUOTE

How bout making mydsl load check first, and if its already mounted, it prompts for an action (Unload or Cancel).
Back to top
Profile PM 
6 replies since Oct. 09 2007,09:34 < 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: mydsl-load idiot valve

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