]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - INSTALL/Ventoy2Disk.sh
3 if ! [ -f .
/tool
/ventoy_lib.sh
]; then
4 if [ -f ${0%Ventoy2Disk.sh}/tool
/ventoy_lib.sh
]; then
9 if [ -f .
/ventoy
/version
]; then
10 curver
=$(cat ./ventoy/version)
15 if uname
-a | egrep -q 'aarch64|arm64'; then
16 export TOOLDIR
=aarch64
17 elif uname
-a | egrep -q 'x86_64|amd64'; then
22 export PATH
=.
/tool
/$TOOLDIR:$PATH
26 echo '**********************************************'
27 echo " Ventoy: $curver $TOOLDIR"
28 echo " longpanda admin@ventoy.net"
29 echo " https://www.ventoy.net"
30 echo '**********************************************'
34 if ! [ -f .
/boot
/boot.img
]; then
35 if [ -d .
/grub
]; then
36 echo "Don't run Ventoy2Disk.sh here, please download the released install package, and run the script in it."
38 echo "Please run under the correct directory!"
43 echo "############# Ventoy2Disk $* [$TOOLDIR] ################" >> .
/log.txt
47 if [ -f .
/tool
/$TOOLDIR/ash
]; then
48 echo "no need to decompress tools" >> .
/log.txt
52 [ -f .
/xzcat
] && chmod +x .
/xzcat
54 for file in $(ls *.xz); do
55 xzcat
$file > ${file%.xz}
56 [ -f .
/$file ] && rm -f .
/$file
60 chmod +x
-R .
/tool
/$TOOLDIR
63 if [ -f /bin
/bash
]; then
64 /bin
/bash .
/tool
/VentoyWorker.sh $
*
66 ash .
/tool
/VentoyWorker.sh $
*
69 if [ -n "$OLDDIR" ]; then