mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
firmware: add plugin list if plugins are installed; closes #1563
This commit is contained in:
parent
ae677059d1
commit
1626ab87dc
@ -1,7 +1,7 @@
|
||||
<?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')
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user