Commit 4b197af1 authored by Franco Fichtner's avatar Franco Fichtner

inc: fix interface rename; mea culpa

parent c98b514e
...@@ -111,7 +111,7 @@ function legacy_interface_deladdress($ifs, $addr) ...@@ -111,7 +111,7 @@ function legacy_interface_deladdress($ifs, $addr)
function legacy_interface_rename($ifs, $name) function legacy_interface_rename($ifs, $name)
{ {
$cmd = '/sbin/ifconfig ' . escapeshellarg($if) . ' name ' . escapeshellarg($name); $cmd = '/sbin/ifconfig ' . escapeshellarg($ifs) . ' name ' . escapeshellarg($name);
exec($cmd . ' 2>&1', $out, $ret); exec($cmd . ' 2>&1', $out, $ret);
if ($ret) { if ($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