#!/bin/bash
+id=`hostname`-$$
+
if [ "$1" = "stop" ]
then
# сами остаемся слушать команды
-mosquitto_sub -v -h $mqhost -p $mqport -t "$mqcmd/#" -u $mquser -P $mqpassword | while read line
+mosquitto_sub -i mqtt-mpd-$id -v -h $mqhost -p $mqport -t "$mqcmd/#" -u $mquser -P $mqpassword | while read line
do
template="s!$mqcmd/!!"
esac
;;
currentnum)
- $mpccmd pause
$mpccmd play $arg
;;
repeat|random|single|consume)