summaryrefslogtreecommitdiff
path: root/package/network/services/uhttpd/files/ubus.default
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/uhttpd/files/ubus.default')
-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