]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - IMG/cpio/ventoy/hook/kaos/ventoy-hook.sh
Fix the order issue in TreeView mode. (#3218)
[Ventoy.git] / IMG / cpio / ventoy / hook / kaos / ventoy-hook.sh
1 #!/ventoy/busybox/sh
2
3 . $VTOY_PATH/hook/ventoy-os-lib.sh
4
5 if $GREP -q '^"$mount_handler"' /init; then
6 echo 'use mount_handler1 ...' >> $VTLOG
7 $SED "/^\"\$mount_handler\"/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/kaos/ventoy-disk.sh" -i /init
8 elif $GREP -q '^$mount_handler' /init; then
9 echo 'use mount_handler2 ...' >> $VTLOG
10 $SED "/^\$mount_handler/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/kaos/ventoy-disk.sh" -i /init
11 fi
12
13 if [ -f $VTOY_PATH/ventoy_persistent_map ]; then
14 $SED "1 aexport cow_label=vtoycow" -i /init
15 fi