d0a218a0ad9d1e9077cd27f743a147971aae7cbe
[openwrt/openwrt.git] / package / network / services / uhttpd / files / ubus.default
1 #!/bin/sh
2
3 if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
4 uci set uhttpd.main.ubus_prefix=/ubus
5 fi
6
7 [ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
8 uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
9 }
10
11 exit 0