Files
openwrt_NSS_ACW/package/network/services/uhttpd/files/ubus.default
2020-10-22 15:13:38 +01:00

14 lines
289 B
Bash

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