Added a safety measure that eth0 must be UP before other interface can be shut

This commit is contained in:
bergware
2016-06-08 00:39:27 +02:00
parent f81be4baec
commit e0867fc901

View File

@@ -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);
});