aboutsummaryrefslogtreecommitdiff
path: root/audio/squeezeboxserver/files/patch-Slim_Utils_Prefs_OldPrefs.pm
blob: 1cbb1e4c6806168d86f7e383e1ca790e907556d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

$FreeBSD$

--- Slim/Utils/Prefs/OldPrefs.pm.orig
+++ Slim/Utils/Prefs/OldPrefs.pm
@@ -117,7 +117,11 @@
 
 		$oldPrefs = catdir($ENV{'HOME'}, 'slimserver.pref');
 
-	} else {
+	} elsif (-r '/var/db/slimserver/slimserver.conf') {
+
+		$oldPrefs = '/var/db/slimserver/slimserver.conf';
+
+	}else {
 
 		$log->warn("no old preference file found - using default preferences");