]> git.plutz.net Git - serve0/blobdiff - actions/playctl.sh
put statusfile into /tmp
[serve0] / actions / playctl.sh
index bda4d1b208c9b94a5b4152c17514f1494d2a7097..b532e36dfd28202667cb2d02dc490ae1175caad8 100755 (executable)
 # along with Serve0  If not, see <http://www.gnu.org/licenses/>.
 
 fifofile="${_DATA}/mplayer.fifo"
+statusfile="${_DATA}/mplayer.status"
+statusfile="/tmp/mplayer.status"
 volfile="${_DATA}/mplayer.volume"
 
+printf '\rBREAK\r' >> "$statusfile"
+
 if   [ -n "${_POST[amp]+x}" ]; then
   amp $(validate "${_POST[amp]}" '(on|off)' off)
 elif [ -n "${_POST[vol]+x}" ]; then