mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
mpd: move scripts and config from mpfire to mpd
this allows to use mpd without mpfire installed. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -214,11 +214,11 @@ if ( $mpfiresettings{'ACTION'} eq "scan" ){
|
||||
delete $mpfiresettings{'PAGE'}; delete $mpfiresettings{'FRAME'};
|
||||
&General::writehash("${General::swroot}/mpfire/settings", \%mpfiresettings);
|
||||
|
||||
open(DATEI, "<${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
|
||||
open(DATEI, "<${General::swroot}/mpd/mpd.conf") || die "Datei nicht gefunden";
|
||||
my @Zeilen = <DATEI>;
|
||||
close(DATEI);
|
||||
|
||||
open(DATEI, ">${General::swroot}/mpfire/mpd.conf") || die "Datei nicht gefunden";
|
||||
open(DATEI, ">${General::swroot}/mpd/mpd.conf") || die "Datei nicht gefunden";
|
||||
foreach (@Zeilen){
|
||||
if ( $_ =~ /music_directory/){
|
||||
print DATEI "music_directory \"".$mpfiresettings{'MUSICDIR'}."\"\n";
|
||||
|
||||
Reference in New Issue
Block a user