mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Oct. 10 2007,12:12 |
|
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
|