uhttpd: return after processing -d switch, only set ubus prefix if not already defined
SVN-Revision: 38743
This commit is contained in:
parent
c902a76f4d
commit
8a1d77efed
2 changed files with 8 additions and 4 deletions
|
@ -8,13 +8,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=uhttpd
|
PKG_NAME:=uhttpd
|
||||||
PKG_VERSION:=2013-09-13
|
PKG_VERSION:=2013-11-11
|
||||||
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
PKG_RELEASE=$(PKG_SOURCE_VERSION)
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=git://nbd.name/uhttpd2.git
|
PKG_SOURCE_URL:=git://nbd.name/uhttpd2.git
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
PKG_SOURCE_VERSION:=8eb20e0aad7412468975b2c9ce7e374ea3084e42
|
PKG_SOURCE_VERSION:=881d6102cf1f7bc6b54ab395c5e4addbfe1ed34c
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
uci set uhttpd.main.ubus_prefix=/ubus
|
#!/bin/sh
|
||||||
uci commit uhttpd
|
|
||||||
|
if [ -z "$(uci -q get uhttpd.main.ubus_prefix)" ]; then
|
||||||
|
uci set uhttpd.main.ubus_prefix=/ubus
|
||||||
|
uci commit uhttpd
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue