From 8a1d77efed4e915a52e31f6f73a42bd6353353d3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 11 Nov 2013 19:14:01 +0000 Subject: uhttpd: return after processing -d switch, only set ubus prefix if not already defined SVN-Revision: 38743 --- package/network/services/uhttpd/files/ubus.default | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'package/network/services/uhttpd/files/ubus.default') diff --git a/package/network/services/uhttpd/files/ubus.default b/package/network/services/uhttpd/files/ubus.default index ba6c289..397456d 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 -- cgit v1.1