From 8b1b7e27646806c6b283f93a62fd59ed6083f97e Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 12 Feb 2015 09:56:21 -0500 Subject: Fixup config path for lcdproc on 2.2 --- config/lcdproc-dev/lcdproc.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/lcdproc-dev') diff --git a/config/lcdproc-dev/lcdproc.inc b/config/lcdproc-dev/lcdproc.inc index 73827721..fed2e7dc 100644 --- a/config/lcdproc-dev/lcdproc.inc +++ b/config/lcdproc-dev/lcdproc.inc @@ -32,7 +32,12 @@ require_once("service-utils.inc"); /* LCDproc */ define('LCDPROC_RCFILE', '/usr/local/etc/rc.d/lcdproc.sh'); - define('LCDPROC_CONFIG','/usr/local/etc/LCDd.conf'); + $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); + if (($pfs_version == "2.2") && is_dir('/usr/pbi/lcdproc-' . php_uname('m'))) { + define('LCDPROC_CONFIG', '/usr/pbi/lcdproc-' . php_uname('m') . '/local/etc/LCDd.conf'); + } else { + define('LCDPROC_CONFIG','/usr/local/etc/LCDd.conf'); + } define('LCDPROC_HOST','localhost'); define('LCDPROC_PORT','13666'); define('LCDPROC_SERVICE_NAME','lcdproc'); -- cgit v1.2.3