generic userid: use the new USERID api

recent changes in trunk allow us to specify the userid inside the openwrt makefile.
the info is stored int he meta data of the IPK contorl file and users are generated
by the new generic postinst trigger.

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin
2014-10-08 03:45:30 +02:00
parent 85695f4561
commit d4042ec35e
22 changed files with 11 additions and 23 deletions
+1
View File
@@ -30,6 +30,7 @@ define Package/$(PKG_NAME)/default
URL:=http://www.mosquitto.org/
MAINTAINER:=Karl Palsson <karlp@remake.is>
DEPENDS:= +librt
USERID:=mosquitto=200:mosquitto=200
endef
define Package/$(PKG_NAME)
-1
View File
@@ -14,7 +14,6 @@ SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
start() {
user_exists mosquitto 200 || user_add mosquitto 200
if [ "$USE_UCI_CONFIG" -eq 1 ]; then
CONF=/tmp/mosquitto.converted.$$.conf
mosquitto.uci.convert -f $CONF