diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-11 19:14:01 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-11-11 19:14:01 +0000 |
commit | 74f27825b1ac97c7d05246fadc73d38d67ed074a (patch) | |
tree | 733a3c5e74d3180f4edea2b621e218a1cd7560fa /package/network/services/uhttpd/files/ubus.default | |
parent | 808610e17864d9ffd68032007c93192e4fb2d9c5 (diff) |
uhttpd: return after processing -d switch, only set ubus prefix if not already defined
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38743 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/uhttpd/files/ubus.default')
-rw-r--r-- | package/network/services/uhttpd/files/ubus.default | 8 |
1 files changed, 6 insertions, 2 deletions
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 |