mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
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:
@@ -38,6 +38,7 @@ define Package/pulseaudio/Default
|
||||
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
||||
URL:=http://www.pulseaudio.org
|
||||
PROVIDES:=pulseaudio
|
||||
USERID:=pulse=51:pulse=51
|
||||
endef
|
||||
|
||||
define Package/pulseaudio-daemon
|
||||
|
||||
@@ -8,8 +8,6 @@ USE_PROCD=1
|
||||
PROG=/usr/bin/pulseaudio
|
||||
|
||||
start_service() {
|
||||
user_exists pulse 51 || user_add pulse 51
|
||||
group_exists pulse 51 || group_add pulse 51
|
||||
[ -d /var/run/pulse ] || {
|
||||
mkdir -m 0755 -p /var/run/pulse
|
||||
chmod 0750 /var/run/pulse
|
||||
|
||||
Reference in New Issue
Block a user