Power mode: add info when running VM virtualized

This commit is contained in:
bergware
2023-12-28 09:40:13 +01:00
parent 0c81e852f9
commit 753413a8f2
+1 -1
View File
@@ -40,7 +40,7 @@ $(function(){
$('input[type=radio]').each(function(){
if ($(this).prop('disabled')) $(this).next('span').html(" <i>(_(unavailable)_)</i>");
});
<?if (exec("lsblk -Ano mountpoint,label|grep -Pom1 '^/boot +\K.+'") != 'UNRAID'):?>
<?if (exec("dmesg | grep -Pom1 'Hypervisor detected'")):?>
$('#vm').show();
<?endif;?>
});