diff --git a/config/mpfire/mpfire.pl b/config/mpfire/mpfire.pl index 6c9b4c11b..970b76bb3 100644 --- a/config/mpfire/mpfire.pl +++ b/config/mpfire/mpfire.pl @@ -7,6 +7,10 @@ require "${General::swroot}/header.pl"; my $filename = ""; my $debug = 0; +if ( `/etc/init.d/mpd status` =~/not running/ ){ +system("/etc/init.d/mpd start >/dev/null"); +} + if ($ARGV[0] eq 'scan') { if ($debug){print "Creating Database\n";} system("mpd --create-db >/dev/null");