Commit 50f6b918 authored by Franco Fichtner's avatar Franco Fichtner

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

parent 1946d92f
...@@ -37,7 +37,7 @@ $version = strtok(file_get_contents('/usr/local/opnsense/version/opnsense'), '-' ...@@ -37,7 +37,7 @@ $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(shell_exec('uname -m')); $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"; 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