Commit cf3dbedf authored by Ad Schellevis's avatar Ad Schellevis

interfaces.lib.inc, legacy_interface_create, add optional name parameter

parent c2a45931
......@@ -72,9 +72,12 @@ function legacy_interface_flags($ifs, $flag, $report_errors=true)
}
}
function legacy_interface_create($ifs)
function legacy_interface_create($ifs, $name=null)
{
$cmd = '/sbin/ifconfig ' . escapeshellarg($ifs) . ' create';
if (!empty($name)) {
$cmd .= " name " . $name;
}
$new = null;
exec($cmd . ' 2>&1', $out, $ret);
......
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