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
-3
View File
@@ -86,9 +86,6 @@ setup_dns() {
start() {
local hostname iface
user_exists ocserv 72 || user_add ocserv 72 72 /var/lib/ocserv
group_exists ocserv 72 || group_add ocserv 72
hostname=`uci get ddns.myddns.domain`
[ -z "$hostname" ] && hostname=`uci get system.@system[0].hostname`