Playlist for mpd

Here is a little script to generate playlists from folders for mpd. Execute this Skript with the folders name under your music folder.

if [ -z "$1" ]
then
        echo $0 folder
else
        cd /mnt/data/
        find music/"$1" -name '*.mp3' > /mnt/data/playlists/"$1".m3u
fi