Ventoy/LiveCDGUI/VTOY/autostart

29 lines
733 B
Plaintext
Raw Normal View History

2021-09-29 07:26:50 -04:00
#!/bin/sh
hsetroot -fill /usr/share/wallpapers/wallpaper.png
INIFILE=/ventoy/Ventoy2Disk.ini
echo "[Ventoy]" >> $INIFILE
echo "PartStyle=0" >> $INIFILE
echo "ShowAllDevice=0" >> $INIFILE
2021-10-11 05:44:12 -04:00
VTOOLDIR=/ventoy/tool/x86_64
ls -1 $VTOOLDIR/ | grep '\.xz$' | while read line; do
$VTOOLDIR/xzcat $VTOOLDIR/$line > $VTOOLDIR/${line%.xz}
rm -f $VTOOLDIR/$line
chmod +x $VTOOLDIR/${line%.xz}
done
cp -a $VTOOLDIR/mount.exfat-fuse /bin/mount.exfat
cp -a $VTOOLDIR/mkexfatfs /bin/mkfs.exfat
/usr/local/sbin/busybox --install /usr/local/sbin/
tar xf /usr/local/sbin/ntfs-3g.tar.gz -C /
2021-09-29 07:26:50 -04:00
/ventoy/tool/x86_64/Ventoy2Disk.gtk3 --kiosk
2021-10-12 07:20:02 -04:00
reboot -f