Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- sudo systemctl stop shellscript.service # ExecStart='/home/pi/Public/ventoy/VentoyWeb.sh' -H 192.168.1.42
- cd ~/Downloads
- U=https://github.com/ventoy/Ventoy/releases/latest/download; \
- A=$(wget $U/sha256.txt -O - | awk '/linux.tar.gz/{print $2}'); \
- wget $U/$A -O ventoy.tar.gz
- tar -zxf ventoy.tar.gz -C ~/Public/
- cd ~/Public
- V=$(echo $A | sed 's/-linux.*$//')
- rsync -Pa $V/ ventoy/
- chmod +x ~/Public/ventoy/VentoyWeb.sh
- sudo systemctl daemon-reload
- sudo systemctl start shellscript.service
Add Comment
Please, Sign In to add comment