0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 04:51:44 +00:00
packages/sound/mpc/files/pls-handler.sh
Rosen Penev 4fba03d6d1 mpc: update to 0.33
Small Makefile cleanups.

Ran script through shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-20 17:21:50 -08:00

6 lines
116 B
Bash

#!/bin/sh
echo parameter: file.pls
mpc clear
grep '^File[0-9]*' "$1" | sed -e 's/^File[0-9]*=//' | mpc add
mpc play