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 = ""; 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: - +