X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fuhttpd%2Ffiles%2Fubus.default;h=397456db6a99a6cf0c3ddd9ae0c938d538a871dd;hp=ba6c289f842f6b7b48edd52e2ae7dc2c6d94b2be;hb=01f392c95261ba9f5695a75cb9a0cb32de3d914d;hpb=2b654e11d9a85b1290ce260293689f815a23c37d diff --git a/package/network/services/uhttpd/files/ubus.default b/package/network/services/uhttpd/files/ubus.default index ba6c289f84..397456db6a 100644 --- a/package/network/services/uhttpd/files/ubus.default +++ b/package/network/services/uhttpd/files/ubus.default @@ -1,2 +1,6 @@ -uci set uhttpd.main.ubus_prefix=/ubus -uci commit uhttpd +#!/bin/sh + +if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then + uci set uhttpd.main.ubus_prefix=/ubus + uci commit uhttpd +fi