Commit d34dabd9 authored by Franco Fichtner's avatar Franco Fichtner

firmware: add plugin list if plugins are installed; closes #1563

(cherry picked from commit 1626ab87)
parent ef63850e
<?php
/*
Copyright (C) 2015-2016 Franco Fichtner <franco@opnsense.org>
Copyright (C) 2015-2017 Franco Fichtner <franco@opnsense.org>
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2011 Scott Ullrich
All rights reserved.
......@@ -61,15 +61,18 @@ function upload_crash_report($files, $agent)
include('head.inc');
$plugins = implode(' ', explode("\n", shell_exec('pkg info -g "os-*"')));
$last_version = '/usr/local/opnsense/version/opnsense.last';
$crash_report_header = sprintf(
"%s\n%s %s%s %s (%s)\nTime %s\n",
"%s\n%s %s%s %s (%s)\n%sTime %s\n",
php_uname('v'),
$g['product_name'],
trim(file_get_contents('/usr/local/opnsense/version/opnsense')),
file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '',
trim(shell_exec('/usr/local/bin/openssl version')),
trim(shell_exec('uname -p')),
empty($plugins) ? '' : "Plugins $plugins\n",
date('r')
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment