X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/13b2192a5933d2604b3ad2e4e48d3302a19ad8e5..f7fac26c91a2efbb77b243ffd20e89e992ea1f71:/IMG/cpio/ventoy/hook/debian/puppy-hook.sh diff --git a/IMG/cpio/ventoy/hook/debian/puppy-hook.sh b/IMG/cpio/ventoy/hook/debian/puppy-hook.sh index 037c77a..d2e1563 100644 --- a/IMG/cpio/ventoy/hook/debian/puppy-hook.sh +++ b/IMG/cpio/ventoy/hook/debian/puppy-hook.sh @@ -17,18 +17,16 @@ # #************************************************************************************ -if $GREP -q '^ *HAVE_PARTS=' /init; then - $SED '1 apmedia=usbhd' -i /init +$SED '1 apmedia=usbhd' -i /init + +if $GREP -q 'HAVE_PARTS=' /init; then $SED "/^ *HAVE_PARTS=/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/puppy-disk.sh" -i /init $SED "/^ *HAVE_PARTS=/a\ HAVE_PARTS='ventoy|iso9660'" -i /init +elif $GREP -q 'LESSPARTS=' /init; then + $SED "/^ *LESSPARTS=/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/puppy-disk.sh" -i /init + $SED "/^ *LESSPARTS=/a\ LESSPARTS='ventoy|iso9660'" -i /init fi -#360UDisk -if [ -e /360anim ]; then - $BUSYBOX_PATH/touch /puppy.sfs - $SED "/if *.*flag-usb-ready/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/360-disk.sh" -i /init - $SED "/^exec *switch_root/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/360-switch-root.sh" -i /init -fi if [ -f /DISTRO_SPECS ]; then if ! [ -d /dev ]; then