]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/debian/puppy-hook.sh
update tip message for VTOY_DEFAULT_SEARCH_ROOT (#1373)
[Ventoy.git] / IMG / cpio / ventoy / hook / debian / puppy-hook.sh
index 037c77adb6ea4a5fd729f7e589d701ee60a32855..d2e15638c47e476c23754caecca7d3c85a9936a4 100644 (file)
 # 
 #************************************************************************************
 
-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