]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/debian/slax-hook.sh
Update help information
[Ventoy.git] / IMG / cpio / ventoy / hook / debian / slax-hook.sh
index 93790fa8d976e145340375164bf42c60158655fe..5663c0ee38e7bc6baf785caf7843fdf914d675d5 100644 (file)
@@ -17,4 +17,8 @@
 # 
 #************************************************************************************
 
-$SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh"  -i /init
+if [ -f /lib/livekitlib ] && $GREP -q 'debug_log.*find_data_try' /lib/livekitlib; then
+    $SED "/debug_log.*find_data_try/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh"  -i /lib/livekitlib
+else
+    $SED "/find_data/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/debian/slax-disk.sh"  -i /init
+fi