diff options
Diffstat (limited to 'config/nut/nut.inc')
-rw-r--r-- | config/nut/nut.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/nut/nut.inc b/config/nut/nut.inc index aa0bbe13..9ba942ab 100644 --- a/config/nut/nut.inc +++ b/config/nut/nut.inc @@ -36,10 +36,10 @@ define('NUT_RCFILE', '/usr/local/etc/rc.d/nut.sh'); $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); - if ($pfs_version == "2.0") { - define('NUT_DIR','/usr/local/etc/nut'); - } else { + if ($pfs_version == "2.1" || $pfs_version == "2.2") { define('NUT_DIR', '/usr/pbi/nut-' . php_uname("m") . '/etc/nut'); + } else { + define('NUT_DIR','/usr/local/etc/nut'); } function nut_notice ($msg) { syslog(LOG_NOTICE, "nut: {$msg}"); return; } |