mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
interfaces: do not do background ifconfig call
This commit is contained in:
parent
156d6f7287
commit
b6cdbaa400
@ -61,7 +61,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (lagg_inuse($a_laggs[$id]['laggif'])) {
|
||||
$input_errors[] = gettext("This LAGG interface cannot be deleted because it is still being used.");
|
||||
} else {
|
||||
mwexec_bg("/sbin/ifconfig " . escapeshellarg($a_laggs[$id]['laggif']) . " destroy");
|
||||
mwexecf('/sbin/ifconfig %s destroy', $a_laggs[$id]['laggif']);
|
||||
unset($a_laggs[$id]);
|
||||
write_config();
|
||||
header(url_safe('Location: /interfaces_lagg.php'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user