SerW

Ventoy-Upgrade.sh

Mar 17th, 2022 (edited)
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. sudo systemctl stop shellscript.service # ExecStart='/home/pi/Public/ventoy/VentoyWeb.sh' -H 192.168.1.42
  3.  
  4. cd ~/Downloads
  5.  
  6. U=https://github.com/ventoy/Ventoy/releases/latest/download;        \
  7. A=$(wget $U/sha256.txt -O - | awk '/linux.tar.gz/{print $2}');      \
  8. wget $U/$A -O ventoy.tar.gz
  9.  
  10. tar -zxf ventoy.tar.gz -C ~/Public/
  11.  
  12. cd ~/Public
  13. V=$(echo $A | sed 's/-linux.*$//')
  14. rsync -Pa $V/ ventoy/
  15.  
  16. chmod +x ~/Public/ventoy/VentoyWeb.sh
  17.  
  18. sudo systemctl daemon-reload
  19. sudo systemctl start shellscript.service
  20.  
Add Comment
Please, Sign In to add comment