blob: adbc0195e4b05e530b4b0544d9b7172f74c01e95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Daemon for radeon-profile GUI"
command="/usr/sbin/radeon-profile-daemon"
command_background="true"
pidfile="/run/${SVCNAME}.pid"
radeon_socket="/tmp/radeon-profile-daemon-server"
wait_for_socket() {
local i=0
while [ ${i} -lt 10 ]; do
[ -S "${radeon_socket}" ] && return 0
i=$((${i}+1))
sleep 1
done
return 1
}
start_post() {
wait_for_socket || return 1
chgrp video ${radeon_socket}
}
|