Add host USB device information to u-OS app web page.

This commit is contained in:
Albrecht Lohofener
2024-07-21 22:39:21 +02:00
parent 179be51d1c
commit 3a9905d6c2
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ See `docker-compose.yml`
## Build and run
```bash
docker build -t openwrt-docker-arm64 . && docker compose up
docker compose up
```
If you like to specify a specific OpenWrt version you can do
+4
View File
@@ -47,6 +47,10 @@ else
echo "* Enviroment variables *" >> /var/www/system_info.txt
export >> /var/www/system_info.txt
echo $'\n' >> /var/www/system_info.txt
echo "* USB devices *" >> /var/www/system_info.txt
lsusb >> /var/www/system_info.txt
sed -i 's/---SED_REPLACEMENT_TAG---/"system_info.txt"/g' /var/www/index.html
fi