mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Oct. 09 2007,13:09 |
|
I can see how it's easy to accidentally unmount a uci, as I used to do it myself quite often.
If you don't mind a little critique, your script could be simplified and be allowed to work without a forced exit:
Code Sample | [ -d /opt/wine-0.9.28_with_opengl ] || mydsl-load /mnt/hda3/wine-0.9.28_with_opengl.unc |
This cuts down on the number of commands needed, which translates to smaller code and (possibly) less processing time. It also eliminates the need for exit, which allows you to use this command for multiple uci packages, or to add whatever other commands you might want after the mydsl-load commands.
Personally I haven't used mydsl-load noninteractively, other than the auto-loaded extensions during boot. I tend to use either a dmenu script or a modified version of the ucitool script to manage ucis, both of which visually separate the loaded packages from the available ones to help prevent accidental unloading.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|