]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/gentoo/ventoy-hook.sh
1.0.05 release
[Ventoy.git] / IMG / cpio / ventoy / hook / gentoo / ventoy-hook.sh
index d9034fbf7b94929b3e45b0a5c913478d9a7aa228..2a2588bd679d144c4508e11cece16b44f6e8454f 100644 (file)
@@ -23,5 +23,9 @@ if [ -d /etc/udev/rules.d ]; then
     ventoy_systemd_udevd_work_around
     ventoy_add_udev_rule "$VTOY_PATH/hook/default/udev_disk_hook.sh %k noreplace"
 else
-    $SED "/mdev *-s/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/gentoo/disk_hook.sh"  -i /init
+    if $GREP -q kaspersky /proc/version; then
+        $SED "/sysresccd_stage1_normal[^(]*$/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/gentoo/disk_hook.sh"  -i /init
+    else
+        $SED "/mdev *-s/a\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/gentoo/disk_hook.sh"  -i /init
+    fi
 fi