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:
Franco Fichtner 2018-09-16 20:41:51 +02:00
parent 90296833f9
commit e194253186
2 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,5 @@
/usr/local/etc/rc.d/configd stop
cp /usr/local/opnsense/firmware-product /usr/local/opnsense/firmware-product.last
echo "Resetting root shell"
pw usermod -n root -s /bin/csh

View File

@ -64,13 +64,11 @@ include('head.inc');
$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(
"%s\n%s %s%s (%s/%s)\n%sTime %s\n",
"%s\n%s %s (%s/%s)\n%sTime %s\n",
php_uname('v'),
$g['product_name'],
"{$g['product_version']}-{$g['product_hash']}",
!empty($last['product_version']) ? sprintf(' [%s]', "{$last['product_version']}-{$last['product_hash']}") : '',
$g['product_arch'],
$g['product_flavour'],
empty($plugins) ? '' : "Plugins $plugins\n",