aboutsummaryrefslogtreecommitdiffstats
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, 8 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/ubus.default b/package/network/services/uhttpd/files/ubus.default
new file mode 100644
index 0000000..f0f71e9
--- /dev/null
+++ b/package/network/services/uhttpd/files/ubus.default
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
+ uci set uhttpd.main.ubus_prefix=/ubus
+ uci commit uhttpd
+fi
+
+exit 0