aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/uhttpd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-11-11 19:14:01 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-11-11 19:14:01 +0000
commit8a1d77efed4e915a52e31f6f73a42bd6353353d3 (patch)
treea3f2d6826d53e1486bea5889bab2a07dbc15f3ab /package/network/services/uhttpd/files
parentc902a76f4dabbe49904e8a2ebe210e729b91283a (diff)
downloadupstream-8a1d77efed4e915a52e31f6f73a42bd6353353d3.tar.gz
upstream-8a1d77efed4e915a52e31f6f73a42bd6353353d3.tar.bz2
upstream-8a1d77efed4e915a52e31f6f73a42bd6353353d3.zip
uhttpd: return after processing -d switch, only set ubus prefix if not already defined
SVN-Revision: 38743
Diffstat (limited to 'package/network/services/uhttpd/files')
-rw-r--r--package/network/services/uhttpd/files/ubus.default8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/uhttpd/files/ubus.default b/package/network/services/uhttpd/files/ubus.default
index ba6c289f84..397456db6a 100644
--- a/package/network/services/uhttpd/files/ubus.default
+++ b/package/network/services/uhttpd/files/ubus.default
@@ -1,2 +1,6 @@
-uci set uhttpd.main.ubus_prefix=/ubus
-uci commit uhttpd
+#!/bin/sh
+
+if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
+ uci set uhttpd.main.ubus_prefix=/ubus
+ uci commit uhttpd
+fi