From 46d07a1d696e32de33537ad41e173333f5c4a602 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 8 Sep 2015 14:39:30 +0200 Subject: use pkg_exec() to check package version for pfSense 2.3 --- config/widget-antivirus/antivirus_status.widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/widget-antivirus/antivirus_status.widget.php b/config/widget-antivirus/antivirus_status.widget.php index 77685c20..82f9a74e 100644 --- a/config/widget-antivirus/antivirus_status.widget.php +++ b/config/widget-antivirus/antivirus_status.widget.php @@ -112,7 +112,7 @@ function dwg_av_statistic() { // Show package version at least, no good quick way to get the PBI version echo "pkg v{$config['installedpackages']['package'][get_pkg_id("havp")]['version']}"; } else { - echo exec("/usr/sbin/pkg info havp | /usr/bin/head -n 1"); + echo pkg_exec("query '%v' havp"); } ?> -- cgit v1.2.3