console: append domain name for neatness

This commit is contained in:
Franco Fichtner 2016-03-18 09:08:10 +01:00
parent d68e86e81b
commit 465c8ad46b

View File

@ -35,11 +35,12 @@ require_once("util.inc");
$version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-');
$hostname = $config['system']['hostname'];
$domain = $config['system']['domain'];
$product = $g['product_name'];
$machine = trim(shell_exec('uname -m'));
$flavour = strtok(shell_exec('/usr/local/bin/openssl version'), ' ');
print "\n*** Welcome to {$product} {$version} ({$machine}/${flavour}) on {$hostname} ***\n";
print "\n*** Welcome to {$product} {$version} ({$machine}/${flavour}) on {$hostname}.{$domain} ***\n";
$iflist = get_configured_interface_with_descr(false, true);