uhttpd: handle reload after uhttpd-mod-ubus installation using postinst
[openwrt/openwrt.git] / package / network / services / uhttpd / files / ubus.default
index 474016c1c55705597e2558560d589c0f40d81e56..d0a218a0ad9d1e9077cd27f743a147971aae7cbe 100644 (file)
@@ -1,17 +1,11 @@
 #!/bin/sh
 
-commit=0
-
 if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
        uci set uhttpd.main.ubus_prefix=/ubus
-       commit=1
 fi
 
 [ "$(uci -q get uhttpd.main.ubus_socket)" = "/var/run/ubus.sock" ] && {
        uci set uhttpd.main.ubus_socket='/var/run/ubus/ubus.sock'
-       commit=1
 }
 
-[ "$commit" = 1 ] && uci commit uhttpd && /etc/init.d/uhttpd reload
-
 exit 0