diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-23 14:31:49 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-23 14:32:38 -0300 |
commit | 78c4191c4a1c37ce4e98740f8316b61d2a57b748 (patch) | |
tree | 04ba12fa8f66e1ce357c6330768042b21ef7b833 /config | |
parent | 84af67a6d227d59fad29bf1ec5b6752bf78e39e5 (diff) | |
download | pfsense-packages-78c4191c4a1c37ce4e98740f8316b61d2a57b748.tar.gz pfsense-packages-78c4191c4a1c37ce4e98740f8316b61d2a57b748.tar.bz2 pfsense-packages-78c4191c4a1c37ce4e98740f8316b61d2a57b748.zip |
Sanitize Avahi version, add depends and fix check for PBI only on 2.1 and 2.2
Diffstat (limited to 'config')
-rw-r--r-- | config/avahi/avahi.inc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/config/avahi/avahi.inc b/config/avahi/avahi.inc index 554a647c..6d46df59 100644 --- a/config/avahi/avahi.inc +++ b/config/avahi/avahi.inc @@ -30,14 +30,10 @@ */ $pfs_version = substr(trim(file_get_contents("/etc/version")),0,3); -switch ($pfs_version) { - case "1.2": - case "2.0": - define('AVAHI_BASE', '/usr/local'); - break; - default: - define('AVAHI_BASE', '/usr/pbi/avahi-' . php_uname("m")); -} +if ($pfs_version == "2.1" || $pfs_version == "2.2") + define('AVAHI_BASE', '/usr/pbi/avahi-' . php_uname("m")); +else + define('AVAHI_BASE', '/usr/local'); function avahi_start() { mwexec_bg("/usr/local/etc/rc.d/avahi-daemon.sh start"); |