mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
rc.initial: clean up the banner a bit
This commit is contained in:
parent
00c4ce6f33
commit
1946d92fd4
@ -33,12 +33,13 @@ require_once("config.inc");
|
||||
require_once("gwlb.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
$version = trim(file_get_contents('/usr/local/opnsense/version/opnsense'));
|
||||
$version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-');
|
||||
$hostname = $config['system']['hostname'];
|
||||
$product = $g['product_name'];
|
||||
$machine = trim(`uname -m`);
|
||||
$machine = trim(shell_exec('uname -m'));
|
||||
$flavour = strtok(exec('/usr/local/bin/openssl version'), ' ');
|
||||
|
||||
print "\n*** Welcome to {$product} {$version} ({$machine}) on {$hostname} ***\n";
|
||||
print "\n*** Welcome to {$product} {$version} ({$machine}/${flavour}) on {$hostname} ***\n";
|
||||
|
||||
$iflist = get_configured_interface_with_descr(false, true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user