mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: simplify as others like gif and gre do #4622
This commit is contained in:
parent
b77d6ba74c
commit
e6518fcd14
@ -42,11 +42,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
if (is_interface_assigned($a_bridges[$id]['bridgeif'])) {
|
||||
$input_errors[] = gettext("This bridge cannot be deleted because it is assigned as an interface.");
|
||||
} else {
|
||||
if (!does_interface_exist($a_bridges[$id]['bridgeif'])) {
|
||||
log_error("Bridge interface does not exist, skipping ifconfig destroy.");
|
||||
} else {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($a_bridges[$id]['bridgeif']) . " destroy");
|
||||
}
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($a_bridges[$id]['bridgeif']) . " destroy");
|
||||
unset($a_bridges[$id]);
|
||||
write_config();
|
||||
header(url_safe('Location: /interfaces_bridge.php'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user