From 7dc649ed6dfb737d3af603ad8b41e2162b9abec9 Mon Sep 17 00:00:00 2001 From: Joerg Seitter Date: Thu, 30 Apr 2020 23:06:01 +0200 Subject: shairpoint-sync: proper startup integration Signed-off-by: Joerg Seitter --- package/shairport-sync/files/shairport-sync.postinst | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 package/shairport-sync/files/shairport-sync.postinst (limited to 'package/shairport-sync/files/shairport-sync.postinst') diff --git a/package/shairport-sync/files/shairport-sync.postinst b/package/shairport-sync/files/shairport-sync.postinst new file mode 100644 index 000000000..9558f175a --- /dev/null +++ b/package/shairport-sync/files/shairport-sync.postinst @@ -0,0 +1,7 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf shairport_sync NO +add_rcconf shairport_sync_flags " " +gid=$(get_next_gid) +add_group shairport-sync $gid +add_user shairport-sync $(get_next_uid) $gid /etc/shairport-sync -- cgit v1.2.3