uhttpd: Reload config after uhttpd-mod-ubus was added
[openwrt/openwrt.git] / package / network / services / uhttpd / files / ubus.default
index ca9e72a3150a3f8a0339fdd8b7030ad173bfdd82..b218d3f85d11a94534b36878e23db892ca721689 100644 (file)
@@ -3,11 +3,13 @@
 if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
        uci set uhttpd.main.ubus_prefix=/ubus
        uci commit uhttpd
+       /etc/init.d/uhttpd reload
 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
+       /etc/init.d/uhttpd reload
 }
 
 exit 0