Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Hack:update and add

From Music Player Daemon Community Wiki

Jump to: navigation, search
 

This simple shell script updates the database and adds all songs, when finished.

#!/bin/sh
echo 'updating...'
mpc update > /dev/null
while [ -n "$(mpc | grep Updating)" ] ; do sleep 5 ; done
echo 'adding...'
mpc clear
mpc add / > /dev/null
mpc play
Rate this article:
Share this article: