1
0
Fork 0
mirror of https://github.com/Luzifer/termux-cfg.git synced 2024-11-09 15:00:04 +00:00

Add IP output for start_server

This commit is contained in:
Knut Ahlers 2019-10-19 21:06:44 +02:00
parent 3b5183931f
commit a0372fbc4a

View file

@ -1,5 +1,11 @@
#!/data/data/com.termux/files/usr/bin/env bash #!/data/data/com.termux/files/usr/bin/env bash
set -euo pipefail
echo "### Current IP confguration"
ip address show dev wlan0
echo "### Starting server on port 8080"
echo "Press Ctrl+C to quit"
exec /data/data/com.termux/files/home/bin/gziphttp \ exec /data/data/com.termux/files/home/bin/gziphttp \
--serve-dir /storage/emulated/0/public \ --serve-dir /storage/emulated/0/public \
--listen :8080 --listen :8080