mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-11-11 13:10:38 +00:00
23 lines
303 B
Bash
23 lines
303 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
cd /
|
||
|
tar -xf ventoy.tar.gz
|
||
|
|
||
|
cd /ventoy
|
||
|
mkdir mnt
|
||
|
for i in $(ls tcz/*.tcz); do
|
||
|
mount $i mnt
|
||
|
cp -a mnt/* /
|
||
|
umount mnt
|
||
|
done
|
||
|
|
||
|
ldconfig /usr/local/lib /usr/lib /lib
|
||
|
|
||
|
#workaround for swapon
|
||
|
rm -f /sbin/swapon
|
||
|
echo '#!/bin/sh' > /sbin/swapon
|
||
|
chmod +x /sbin/swapon
|
||
|
|
||
|
sh /ventoy/ventoy.sh
|
||
|
|