mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
firmware: kill the firmware-product.last trick
On second thought it's only marginally useful and not really relevant nowadays for working on crash reports.
This commit is contained in:
parent
90296833f9
commit
e194253186
@ -1,7 +1,5 @@
|
|||||||
/usr/local/etc/rc.d/configd stop
|
/usr/local/etc/rc.d/configd stop
|
||||||
|
|
||||||
cp /usr/local/opnsense/firmware-product /usr/local/opnsense/firmware-product.last
|
|
||||||
|
|
||||||
echo "Resetting root shell"
|
echo "Resetting root shell"
|
||||||
pw usermod -n root -s /bin/csh
|
pw usermod -n root -s /bin/csh
|
||||||
|
|
||||||
|
|||||||
@ -64,13 +64,11 @@ include('head.inc');
|
|||||||
|
|
||||||
$plugins = implode(' ', explode("\n", shell_exec('pkg info -g "os-*"')));
|
$plugins = implode(' ', explode("\n", shell_exec('pkg info -g "os-*"')));
|
||||||
|
|
||||||
$last = json_decode(@file_get_contents('/usr/local/opnsense/firmware-product.last'), true);
|
|
||||||
$crash_report_header = sprintf(
|
$crash_report_header = sprintf(
|
||||||
"%s\n%s %s%s (%s/%s)\n%sTime %s\n",
|
"%s\n%s %s (%s/%s)\n%sTime %s\n",
|
||||||
php_uname('v'),
|
php_uname('v'),
|
||||||
$g['product_name'],
|
$g['product_name'],
|
||||||
"{$g['product_version']}-{$g['product_hash']}",
|
"{$g['product_version']}-{$g['product_hash']}",
|
||||||
!empty($last['product_version']) ? sprintf(' [%s]', "{$last['product_version']}-{$last['product_hash']}") : '',
|
|
||||||
$g['product_arch'],
|
$g['product_arch'],
|
||||||
$g['product_flavour'],
|
$g['product_flavour'],
|
||||||
empty($plugins) ? '' : "Plugins $plugins\n",
|
empty($plugins) ? '' : "Plugins $plugins\n",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user