Quote |
If this is the "right thing to do", is /opt/sbin required for executables in /opt/myapp/sbin or could symlinks be used from /opt/bin to /opt/myapp/sbin? |
Quote |
Is there a better way to handle .conf files in uci extensions? |
Quote |
Prior to loading an extension for the first time, the directory /var/xxxx can be created and added to the backup, but is there a better way? |
Code Sample |
[ -d /var/xxx ] || mkdir /var/xxx exec /opt/myapp/sbin/command |
Quote |
I think you're going to have to explain a little further what you mean by .conf files and what you're doing with them. |
Quote |
I generally use a wrapper script to create vital files. |
Quote |
Using a .uci should not have to invoke mkwriteable via a dependent .dsl |
Quote |
This would be most obvious to do from an icon, but no so obvious to do (but still possible) for a collection of applets |
Code Sample |
[ -d /var/xxx ] || mkdir /var/xxx case $0 in */some_command) exec /opt/myapp/bin/somecommand;; */other_command) exec /opt/myapp/bin/othercommand;; esac |
Code Sample |
[ -d /var/xxx ] || mkdir /var/xxx my_command=`basename $0` exec /opt/myapp/bin/$my_command |