From 012589b8481e3cffb9d053e5d8959d8b0fba1d4f Mon Sep 17 00:00:00 2001 From: Carlos V <76731844+cvc90@users.noreply.github.com> Date: Sat, 5 Aug 2023 15:19:23 +0200 Subject: [PATCH] Update systeminfo.php Add new content to the "USB" variables submenu Add new content to the "USB" submenu Add new content to the "Services" submenu --- front/systeminfo.php | 62 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/front/systeminfo.php b/front/systeminfo.php index b65941df..4e00ef9f 100644 --- a/front/systeminfo.php +++ b/front/systeminfo.php @@ -9,7 +9,7 @@ // Puche 2021 pi.alert.application@gmail.com GNU GPLv3 // jokob-sk 2022 jokob.sk@gmail.com GNU GPLv3 // leiweibau 2022 https://github.com/leiweibau GNU GPLv3 -// cvc90 2023 https://github.com/cvc90 GNU GPLv3 +// cvc90 2023 https://github.com/cvc90 GNU GPLv3 //------------------------------------------------------------------------------ ?> @@ -92,6 +92,9 @@ $hdd_result = shell_exec("df | awk '{print $5}'"); $hdd_devices_percent = explode("\n", trim($hdd_result)); $hdd_result = shell_exec("df | awk '{print $6}'"); $hdd_devices_mount = explode("\n", trim($hdd_result)); +//usb devices +$usb_result = shell_exec("lsusb"); +$usb_devices_mount = explode("\n", trim($usb_result)); // Client ---------------------------------------------------------- echo '
| Service Name | +Service Description | +
|---|---|
| ' . substr($servives_name, 0, -8) . ' | ' . $servives_description . ' |
| ' . str_replace('Device', 'Dev.', $usb_bus) . ' | ' . $usb_dev . ' |