Initial commit

This commit is contained in:
2026-10-15 17:17:16 +07:00
commit f9951daf22
7 changed files with 432 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
function get_devices()
{
exec("lsblk -J", $raw, $retval);
if ($retval != 0) {
return [];
}
$data = json_decode(implode("", $raw));
return $data->blockdevices;
}
?>