2
0
forked from Ivasoft/openwrt

uhttpd: return after processing -d switch, only set ubus prefix if not already defined

SVN-Revision: 38743
This commit is contained in:
Jo-Philipp Wich
2013-11-11 19:14:01 +00:00
parent c902a76f4d
commit 8a1d77efed
2 changed files with 8 additions and 4 deletions

View File

@@ -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