]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/Ventoy2Disk.sh
3 if [ -f .
/ventoy
/version
]; then
4 curver
=$(cat ./ventoy/version)
8 echo '**********************************************'
9 echo " Ventoy: $curver"
10 echo " longpanda admin@ventoy.net"
11 echo " https://www.ventoy.net"
12 echo '**********************************************'
17 if ! [ -f .
/tool
/xzcat
]; then
18 if [ -f ${0%Ventoy2Disk.sh}/tool
/xzcat
]; then
19 cd ${0%Ventoy2Disk.sh}
23 if ! [ -f .
/boot
/boot.img
]; then
24 if [ -d .
/grub
]; then
25 echo "Don't run Ventoy2Disk.sh here, please download the released install package, and run the script in it."
27 echo "Please run under the correct directory!"
32 echo "############# Ventoy2Disk $* ################" >> .
/log.txt
35 if ! [ -f .
/tool
/ash
]; then
38 for file in $(ls *.xz); do
39 .
/xzcat
$file > ${file%.xz}
44 if ! [ -f .
/tool
/ash
]; then
45 echo 'Failed to decompress tools ...'
46 if [ -n "$OLDDIR" ]; then
53 .
/tool
/ash .
/tool
/VentoyWorker.sh $
*
55 if [ -n "$OLDDIR" ]; then