diff --git a/plugins/dynamix/Eth0.page b/plugins/dynamix/Eth0.page
index 0d3e702ec..5a64a8ae7 100644
--- a/plugins/dynamix/Eth0.page
+++ b/plugins/dynamix/Eth0.page
@@ -45,8 +45,9 @@ foreach ($ports as $port) {
$build = true;
}
}
-// enable interface only when VMs are stopped
-$disabled = (file_exists('/var/run/libvirt/libvirt-sock') && exec("virsh list|grep -om1 running")) ? 'disabled' : '';
+// enable interface only when VMs and Docker are stopped
+$service = exec("pgrep libvirt") ? 'VMs' : '';
+$service .= exec("pgrep docker") ? ($service ? ' and ' : '').'Docker' : '';
// get VLAN interfaces
$vlan_eth0 = [0];
@@ -224,7 +225,7 @@ function checkPort() {
$(function() {
var ctrl = "Please wait... configuring interfaces";
var form = document.eth0_settings;
-
+
$('#tab1').bind({click:function(){
$('#bond0').dropdownchecklist('destroy').dropdownchecklist({emptyText:'None', width:131});
$('#bridge0').dropdownchecklist('destroy').dropdownchecklist({emptyText:'None', width:131});
@@ -236,7 +237,7 @@ $(function() {
checkBridgingSettings(form,0);
checkNetworkAccess(form,'eth0');
checkNetworkSettings(form);
-
+
disableForm(form);
$('#bond0').dropdownchecklist('disable');
$('#bridge0').dropdownchecklist('disable');
@@ -415,12 +416,12 @@ Enable VLANs:
=mk_option($eth0['TYPE'], 'access', 'No');?>
=mk_option($eth0['TYPE'], 'trunk', 'Yes');?>
- press to add VLAN
+ press to add VLAN
VLAN number:
: " class="narrow" required>
- press to remove VLAN
+ press to remove VLAN
> Give each VLAN a unique identifier. Numbers range from 1 to 4095.
@@ -521,5 +522,5 @@ Network mask:
-: =$disabled ? "VMs must be STOPPED to change" : ""?>
+: =$service ? "$service must be STOPPED to change" : ""?>
diff --git a/plugins/dynamix/EthX.page b/plugins/dynamix/EthX.page
index d6aa3946b..6c5cdf65f 100644
--- a/plugins/dynamix/EthX.page
+++ b/plugins/dynamix/EthX.page
@@ -28,8 +28,8 @@ $bond_ethX = $eth0['BONDING']=='yes' ? in_array('ethX',explode(',',$eth0['BONDNI
// get bridge membership
$bridge_ethX = $eth0['BRIDGING']=='yes' ? in_array('ethX',explode(',',$eth0['BRNICS'])) : false;
-if ($disabled)
- $locked = "VMs must be STOPPED to change";
+if ($service)
+ $locked = "$service must be STOPPED to change";
elseif ($bond_ethX)
$locked = "Interface must be removed as Bonding member to change";
elseif ($bridge_ethX)
@@ -134,12 +134,12 @@ Enable VLANs:
=mk_option($ethX['TYPE'], 'access', 'No');?>
=mk_option($ethX['TYPE'], 'trunk', 'Yes');?>
- press to add VLAN
+ press to add VLAN
VLAN number:
: " class="narrow" required>
- press to remove VLAN
+ press to remove VLAN
> Give each VLAN a unique identifier. Numbers range from 1 to 4095.