This commit is contained in:
longpanda
2020-09-02 19:29:19 +08:00
parent d678e54956
commit 9a8d4d0227
17 changed files with 569 additions and 10 deletions

View File

@@ -24,9 +24,12 @@ if $GREP -q '^"$mount_handler"' /init; then
vthookfile=/hooks/archiso
if [ -e /hook/miso ]; then
if [ -e /hooks/miso ]; then
vthookfile=/hooks/miso
$SED "/^\"\$mount_handler\"/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/arch/ventoy-disk.sh \"\$misodevice\"" -i /init
elif [ -e /hooks/artix ]; then
vthookfile=/hooks/artix
$SED "/^\"\$mount_handler\"/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/arch/ventoy-disk.sh \"\$artixdevice\"" -i /init
else
$SED "/^\"\$mount_handler\"/i\ $BUSYBOX_PATH/sh $VTOY_PATH/hook/arch/ventoy-disk.sh \"\$archisodevice\"" -i /init
fi