Commit 0d9770aa authored by Franco Fichtner's avatar Franco Fichtner

rc.initial: use shell_exec() instead of exec()

parent c812c4cc
......@@ -37,7 +37,7 @@ $version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-'
$hostname = $config['system']['hostname'];
$product = $g['product_name'];
$machine = trim(shell_exec('uname -m'));
$flavour = strtok(exec('/usr/local/bin/openssl version'), ' ');
$flavour = strtok(shell_exec('/usr/local/bin/openssl version'), ' ');
print "\n*** Welcome to {$product} {$version} ({$machine}/${flavour}) on {$hostname} ***\n";
......
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