Commit 5cb149d7 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: silly-willy-wlan-fix

parent 865b2731
...@@ -1919,7 +1919,7 @@ function interface_wireless_clone($realif, $wlcfg) ...@@ -1919,7 +1919,7 @@ function interface_wireless_clone($realif, $wlcfg)
} }
log_error(sprintf('Cloning new wireless interface %s', $realif)); log_error(sprintf('Cloning new wireless interface %s', $realif));
exec("/sbin/ifconfig wlan create name {$realif} wlandev {$baseif} {$mode} bssid 2>&1", $out, $ret); exec("/sbin/ifconfig wlan create wlandev {$baseif} {$mode} bssid name {$realif} 2>&1", $out, $ret);
if ($ret <> 0) { if ($ret <> 0) {
log_error(sprintf('Failed to clone interface %s with error code %s, output %s', $baseif, $ret, $out[0])); log_error(sprintf('Failed to clone interface %s with error code %s, output %s', $baseif, $ret, $out[0]));
return false; return false;
......
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