]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - IMG/cpio/ventoy/hook/kaos/ventoy-hook.sh
3 .
$VTOY_PATH/hook
/ventoy
-os-lib.sh
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
13 if [ -f $VTOY_PATH/ventoy_persistent_map
]; then
14 $SED "1 aexport cow_label=vtoycow" -i /init