wok annotate ventoy/stuff/TazVentoy.sh @ rev 24869
Up zlib (1.2.12) CVE-2018-25032
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 30 20:15:06 2022 +0000 (2022-03-30) |
parents | 8b4c18e6ad16 |
children |
rev | line source |
---|---|
pascal@24144 | 1 #!/bin/sh |
pascal@24144 | 2 |
pascal@24144 | 3 case "$1" in |
pascal@24144 | 4 -*) echo "Usage: $0 [ip] [port]" && exit 1 |
pascal@24144 | 5 esac |
pascal@24144 | 6 |
pascal@24144 | 7 [ $(id -u) -ne 0 ] && exec tazbox su $0 $@ |
pascal@24144 | 8 |
pascal@24144 | 9 cd $(dirname $0) |
pascal@24146 | 10 HOST="${1:-127.0.0.1}:${2:-24680}" |
pascal@24146 | 11 echo -n > log.txt |
pascal@24144 | 12 |
pascal@24146 | 13 PATH=./tool/i386:$PATH V2DServer ${HOST/:/ } & |
pascal@24144 | 14 sleep 1 |
pascal@24144 | 15 |
pascal@24146 | 16 tazweb --notoolbar http://$HOST/ || browser http://$HOST/ |
pascal@24146 | 17 kill %1 |