aboutsummaryrefslogtreecommitdiffstats
path: root/bin/lib4a-tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lib4a-tools.sh')
-rw-r--r--bin/lib4a-tools.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/lib4a-tools.sh b/bin/lib4a-tools.sh
index ab0ee18..776b1c0 100644
--- a/bin/lib4a-tools.sh
+++ b/bin/lib4a-tools.sh
@@ -26,8 +26,9 @@ function 4a-client() {
# get port for audio service
local port=""
local token="HELLO"
+ local unitfile=$( ls /var/local/lib/systemd/system/afm-service-agl-service-audio-4a*.service )
- if [ -f "/var/local/lib/systemd/system/afm-service-agl-service-audio-4a*.service" ]; then
+ if [ -f "$unitfile" ]; then
log "Detected systemd unit file!"
port=$( grep -sr X-AFM-http /var/local/lib/systemd/system/afm-service-agl-service-audio-4a*.service | cut -f2 -d'=' )
log "Port detected: $port"