1
0
dwelling-radio/tools/radio-listener-disconnect

7 lines
206 B
Bash

#!/usr/bin/env sh
response=$(curl -XDELETE --unix-socket /var/run/dwelling-radio/sock http://localhost/api/listener -o /dev/null -s -w "%{response_code}")
if [ "$response" -ne "200" ]; then
exit 1;
fi