mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 14:30:29 -05:00
Added a safety measure that eth0 must be UP before other interface can be shut
This commit is contained in:
@@ -73,6 +73,9 @@ $(function() {
|
||||
<?endif;?>
|
||||
<?if ($locked):?>
|
||||
disableForm(form,true);
|
||||
<?endif;?>
|
||||
<?if (strlen(exec("ip link show eth0|grep -om1 ',UP[,>]'"))==0):?>
|
||||
$('input[name="#shut"]').prop('disabled',true);
|
||||
<?endif;?>
|
||||
setTimeout(portcheck_ethX,Number('ethX'.substr(3))*1000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user