mirror of
https://github.com/webmin/webmin.git
synced 2026-08-23 15:30:28 +01:00
Fix to restrict live deletion to virtual network devices
https://github.com/webmin/webmin/pull/2795
This commit is contained in:
@@ -617,10 +617,10 @@ else {
|
||||
sub destroy_interface_device
|
||||
{
|
||||
my ($a) = @_;
|
||||
my $name = $a->{'fullname'} || $a->{'name'};
|
||||
if (&has_command("ip") && $a->{'virtual'} eq '' &&
|
||||
(&use_ifup_command($a) || $a->{'bridge'})) {
|
||||
&backquote_logged("ip link delete ".
|
||||
quotemeta($a->{'fullname'} || $a->{'name'})." 2>&1");
|
||||
&iface_type($name) =~ /(?:Bonded|VLAN|Bridge)$/) {
|
||||
&backquote_logged("ip link delete ".quotemeta($name)." 2>&1");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user