openwrt/package/network/services/uhttpd/files/ubus.default

12 lines
251 B
Plaintext
Raw Normal View History

#!/bin/sh
if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
uci set uhttpd.main.ubus_prefix=/ubus
fi
[ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
}
exit 0