]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/Ventoy2Disk.sh
5 echo '***********************************************************'
6 echo '* Ventoy2Disk Script *'
7 echo '* longpanda admin@ventoy.net *'
8 echo '***********************************************************'
13 if ! [ -f .
/tool
/xzcat
]; then
14 if [ -f ${0%Ventoy2Disk.sh}/tool
/xzcat
]; then
15 cd ${0%Ventoy2Disk.sh}
19 if ! [ -f .
/boot
/boot.img
]; then
20 if [ -d .
/grub
]; then
21 echo "Don't run Ventoy2Disk.sh here, please download the released install package, and run the script in it."
23 echo "Please run under the correct directory!"
28 echo "############# Ventoy2Disk $* ################" >> .
/log.txt
31 if ! [ -f .
/tool
/ash
]; then
34 for file in $(ls *.xz); do
35 .
/xzcat
$file > ${file%.xz}
40 if ! [ -f .
/tool
/ash
]; then
41 echo 'Failed to decompress tools ...'
42 if [ -n "$OLDDIR" ]; then
49 .
/tool
/ash .
/tool
/VentoyWorker.sh $
*
51 if [ -n "$OLDDIR" ]; then