Skip to content

Commit

Permalink
inc: fix interface rename; mea culpa
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 6, 2015
1 parent c98b514 commit 4b197af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/interfaces.lib.inc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function legacy_interface_deladdress($ifs, $addr)

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);
if ($ret) {
Expand Down

0 comments on commit 4b197af

Please sign in to comment.