ca9e72a3150a3f8a0339fdd8b7030ad173bfdd82
[openwrt/staging/zorun.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 uci commit uhttpd
6 fi
7
8 [ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
9 uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
10 uci commit uhttpd
11 }
12
13 exit 0