Commit 3140a98f authored by Franco Fichtner's avatar Franco Fichtner

console: append domain name for neatness

(cherry picked from commit 465c8ad4)
(cherry picked from commit c63366e5)
parent fab67c70
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
/* parse the configuration and include all functions used below */
require_once("config.inc"); require_once("config.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("util.inc"); require_once("util.inc");
$version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-'); $version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-');
$flavour = strtok(shell_exec('/usr/local/bin/openssl version'), ' ');
$hostname = $config['system']['hostname']; $hostname = $config['system']['hostname'];
$product = $g['product_name'];
$machine = trim(shell_exec('uname -m')); $machine = trim(shell_exec('uname -m'));
$flavour = strtok(shell_exec('/usr/local/bin/openssl version'), ' '); $domain = $config['system']['domain'];
$product = $g['product_name'];
print "\n*** Welcome to {$product} {$version} ({$machine}/${flavour}) on {$hostname} ***\n"; print "\n*** {$hostname}.{$domain}: {$product} {$version} ({$machine}/${flavour}) ***\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