uhttpd: return after processing -d switch, only set ubus prefix if not already defined
[openwrt/.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