mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 08:01:25 +00:00
Add host USB device information to u-OS app web page.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user