summaryrefslogtreecommitdiffhomepage
path: root/contrib/uci/hostfiles/bin
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-24 13:55:11 +0000
committerSteven Barth <steven@midlink.org>2008-07-24 13:55:11 +0000
commit7384e0e6b77518efa4d113ede46f8c107de6f604 (patch)
treeabe961b734c865ce3965f45585528c1ff39b94bd /contrib/uci/hostfiles/bin
parentf94c7b2c10d11d343c464be707e12c5754728b06 (diff)
Rewrote host environment targets to work out of the box
Diffstat (limited to 'contrib/uci/hostfiles/bin')
-rwxr-xr-xcontrib/uci/hostfiles/bin/uci2
-rwxr-xr-xcontrib/uci/hostfiles/bin/uci-defaults7
2 files changed, 9 insertions, 0 deletions
diff --git a/contrib/uci/hostfiles/bin/uci b/contrib/uci/hostfiles/bin/uci
new file mode 100755
index 000000000..f6104c6ef
--- /dev/null
+++ b/contrib/uci/hostfiles/bin/uci
@@ -0,0 +1,2 @@
+#!/bin/sh
+$(dirname $0)/../usr/bin/uci -c $(dirname $0)/../etc/config "$@"
diff --git a/contrib/uci/hostfiles/bin/uci-defaults b/contrib/uci/hostfiles/bin/uci-defaults
new file mode 100755
index 000000000..3b58d7b32
--- /dev/null
+++ b/contrib/uci/hostfiles/bin/uci-defaults
@@ -0,0 +1,7 @@
+#!/bin/sh
+for i in $(find $(dirname $0)/../etc/uci-defaults -type f -not -name "$2")
+do
+ [ -f $i ] && {
+ bash $i; rm $i
+ }
+done