Commit c812c4cc authored by Franco Fichtner's avatar Franco Fichtner

rc.initial: clean up the banner a bit

parent 6d57399a
...@@ -33,12 +33,13 @@ require_once("config.inc"); ...@@ -33,12 +33,13 @@ require_once("config.inc");
require_once("gwlb.inc"); require_once("gwlb.inc");
require_once("interfaces.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']; $hostname = $config['system']['hostname'];
$product = $g['product_name']; $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); $iflist = get_configured_interface_with_descr(false, true);
......
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