From 3a9905d6c2d0cfdcd66fb676edfbda0e26d3dbe9 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Sun, 21 Jul 2024 22:39:21 +0200 Subject: [PATCH] Add host USB device information to u-OS app web page. --- readme.md | 2 +- src/init_container.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ccb0ba5..3be0f22 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/src/init_container.sh b/src/init_container.sh index 2ab645c..377df13 100644 --- a/src/init_container.sh +++ b/src/init_container.sh @@ -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