Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
8dce0add
Commit
8dce0add
authored
Aug 29, 2020
by
longpanda
Browse files
update for new release
parent
1bf3e733
Changes
110
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
546 additions
and
0 deletions
+546
-0
IMG/cpio/ventoy/loop/LibreELEC/ventoy-hook.sh
IMG/cpio/ventoy/loop/LibreELEC/ventoy-hook.sh
+23
-0
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
+45
-0
IMG/cpio/ventoy/loop/batocera/ventoy-hook.sh
IMG/cpio/ventoy/loop/batocera/ventoy-hook.sh
+23
-0
IMG/cpio/ventoy/loop/freedombox/ventoy-disk.sh
IMG/cpio/ventoy/loop/freedombox/ventoy-disk.sh
+47
-0
IMG/cpio/ventoy/loop/freedombox/ventoy-hook.sh
IMG/cpio/ventoy/loop/freedombox/ventoy-hook.sh
+22
-0
IMG/cpio/ventoy/loop/lakka/ventoy-disk.sh
IMG/cpio/ventoy/loop/lakka/ventoy-disk.sh
+62
-0
IMG/cpio/ventoy/loop/lakka/ventoy-hook.sh
IMG/cpio/ventoy/loop/lakka/ventoy-hook.sh
+23
-0
IMG/cpio/ventoy/loop/paldo/ventoy-disk.sh
IMG/cpio/ventoy/loop/paldo/ventoy-disk.sh
+47
-0
IMG/cpio/ventoy/loop/paldo/ventoy-hook.sh
IMG/cpio/ventoy/loop/paldo/ventoy-hook.sh
+22
-0
IMG/cpio/ventoy/loop/recalbox/ventoy-disk.sh
IMG/cpio/ventoy/loop/recalbox/ventoy-disk.sh
+45
-0
IMG/cpio/ventoy/loop/recalbox/ventoy-hook.sh
IMG/cpio/ventoy/loop/recalbox/ventoy-hook.sh
+23
-0
IMG/cpio/ventoy/loop/ubos/newroot-hook.sh
IMG/cpio/ventoy/loop/ubos/newroot-hook.sh
+26
-0
IMG/cpio/ventoy/loop/ubos/ventoy-disk.sh
IMG/cpio/ventoy/loop/ubos/ventoy-disk.sh
+48
-0
IMG/cpio/ventoy/loop/ubos/ventoy-hook.sh
IMG/cpio/ventoy/loop/ubos/ventoy-hook.sh
+30
-0
IMG/cpio/ventoy/tool/vtoytool_install.sh
IMG/cpio/ventoy/tool/vtoytool_install.sh
+1
-0
IMG/cpio/ventoy/ventoy_chain.sh
IMG/cpio/ventoy/ventoy_chain.sh
+52
-0
IMG/cpio/ventoy/ventoy_loop.sh
IMG/cpio/ventoy/ventoy_loop.sh
+4
-0
IMG/mkcpio.sh
IMG/mkcpio.sh
+3
-0
IMG/vtloopex/LibreELEC/vtloopex/dm-mod/5.1.16/64/dm-mod.ko.xz
...vtloopex/LibreELEC/vtloopex/dm-mod/5.1.16/64/dm-mod.ko.xz
+0
-0
IMG/vtloopex/dragora/vtloopex/dm-mod/4.19.79-gnu/64/dm-mod.ko.xz
...oopex/dragora/vtloopex/dm-mod/4.19.79-gnu/64/dm-mod.ko.xz
+0
-0
No files found.
IMG/cpio/ventoy/loop/LibreELEC/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/mount_flash.*{/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/LibreELEC/ventoy-disk.sh"
-i
/init
IMG/cpio/ventoy/loop/batocera/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/batocera/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/mount.*devtmpfs/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/batocera/ventoy-disk.sh"
-i
/init
IMG/cpio/ventoy/loop/freedombox/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
insmod
$VTOY_PATH
/modules/dm-mod.ko
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/freedombox/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/local_mount_root *
$/
i
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/freedombox/ventoy-disk.sh"
-i
/scripts/local
IMG/cpio/ventoy/loop/lakka/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
vtKerVer
=
$(
uname
-r
)
if
uname
-m
|
grep
-q
64
;
then
vtBit
=
64
else
vtBit
=
32
fi
xz
-d
$VTOY_PATH
/vtloopex/dm-mod/
$vtKerVer
/
$vtBit
/dm-mod.ko.xz
insmod
$VTOY_PATH
/vtloopex/dm-mod/
$vtKerVer
/
$vtBit
/dm-mod.ko
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
mkdir
/ventoy/mnt
mount /dev/ventoy2 /ventoy/mnt
rm
-f
/ventoy/mnt/.please_resize_me
sync
umount /ventoy/mnt
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/lakka/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/mount_flash.*{/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/lakka/ventoy-disk.sh"
-i
/init
IMG/cpio/ventoy/loop/paldo/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
modprobe dm-mod
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/paldo/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/for *dev *in .*root/i
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/paldo/ventoy-disk.sh"
-i
/init
IMG/cpio/ventoy/loop/recalbox/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/recalbox/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$SED
"/mount.*devtmpfs/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/recalbox/ventoy-disk.sh"
-i
/init
IMG/cpio/ventoy/loop/ubos/newroot-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
sed
"/.*
\/
boot /d"
-i
/new_root/etc/fstab
PATH
=
$VTPATH_OLD
IMG/cpio/ventoy/loop/ubos/ventoy-disk.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
/ventoy/hook/ventoy-hook-lib.sh
if
is_ventoy_hook_finished
;
then
exit
0
fi
vtlog
"#######
$0
$*
########"
VTPATH_OLD
=
$PATH
;
PATH
=
$BUSYBOX_PATH
:
$VTOY_PATH
/tool:
$PATH
xz
-d
$VTOY_PATH
/modules/dm-mod.ko.xz
insmod
$VTOY_PATH
/modules/dm-mod.ko
wait_for_usb_disk_ready
vtdiskname
=
$(
get_ventoy_disk_name
)
if
[
"
$vtdiskname
"
=
"unknown"
]
;
then
vtlog
"ventoy disk not found"
PATH
=
$VTPATH_OLD
exit
0
fi
ventoy_udev_disk_common_hook
"
${
vtdiskname
#/dev/
}
2"
"noreplace"
ventoy_create_dev_ventoy_part
PATH
=
$VTPATH_OLD
set_ventoy_hook_finish
IMG/cpio/ventoy/loop/ubos/ventoy-hook.sh
0 → 100644
View file @
8dce0add
#!/ventoy/busybox/sh
#************************************************************************************
# Copyright (c) 2020, longpanda <admin@ventoy.net>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
#************************************************************************************
.
$VTOY_PATH
/hook/ventoy-os-lib.sh
$BUSYBOX_PATH
/cp
-a
$VTOY_PATH
/hook/default/10-dm.rules /lib/udev/rules.d/
$BUSYBOX_PATH
/cp
-a
$VTOY_PATH
/hook/default/13-dm-disk.rules /lib/udev/rules.d/
$SED
"/^
\"\$
mount_handler
\"
/i
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/ubos/ventoy-disk.sh"
-i
/init
$SED
"/^
\"\$
mount_handler
\"
/a
\
$BUSYBOX_PATH
/sh
$VTOY_PATH
/loop/ubos/newroot-hook.sh"
-i
/init
$SED
"/^
\"\$
mount_handler
\"
/a
\
init=/usr/lib/systemd/systemd"
-i
/init
IMG/cpio/ventoy/tool/vtoytool_install.sh
View file @
8dce0add
...
...
@@ -53,6 +53,7 @@ else
fi
if
$VTOY_PATH
/tool/unsquashfs_64
-t
2>>
$VTLOG
;
then
echo
"use unsquashfs_64"
>>
$VTLOG
$BUSYBOX_PATH
/cp
-a
$VTOY_PATH
/tool/unsquashfs_64
$VTOY_PATH
/tool/vtoy_unsquashfs
...
...
IMG/cpio/ventoy/ventoy_chain.sh
View file @
8dce0add
...
...
@@ -249,6 +249,58 @@ ventoy_get_os_type() {
echo
'crux'
;
return
fi
if
[
-f
/init
]
;
then
if
$GREP
-q
'AryaLinux'
/init
;
then
echo
'aryalinux'
;
return
elif
$GREP
-q
'Dragora'
/init
;
then
echo
'dragora'
;
return
fi
fi
if
$GREP
-q
'slackware'
/proc/version
;
then
echo
'slackware'
;
return
fi
if
$BUSYBOX_PATH
/hostname |
$GREP
-q
'smoothwall'
;
then
echo
'smoothwall'
;
return
fi
if
$GREP
-q
'photon'
/proc/version
;
then
echo
'photon'
;
return
fi
if
$GREP
-q
'ploplinux'
/proc/version
;
then
echo
'ploplinux'
;
return
fi
if
$GREP
-q
'lunar'
/proc/version
;
then
echo
'lunar'
;
return
fi
if
$GREP
-q
'SMGL-'
/proc/version
;
then
echo
'smgl'
;
return
fi
if
$GREP
-q
'rancher'
/proc/version
;
then
echo
'rancher'
;
return
fi
if
[
-e
/init
]
;
then
if
$GREP
-q
-m1
'T2 SDE'
/init
;
then
echo
't2'
;
return
fi
fi
if
$GREP
-q
'wifislax'
/proc/version
;
then
echo
'wifislax'
;
return
fi
if
$GREP
-q
'pisilinux'
/proc/version
;
then
echo
'pisilinux'
;
return
fi
echo
"default"
}
...
...
IMG/cpio/ventoy/ventoy_loop.sh
View file @
8dce0add
...
...
@@ -92,6 +92,10 @@ ventoy_get_os_type() {
fi
fi
if
$GREP
-q
'ventoyos='
/proc/cmdline
;
then
$SED
"s/.*ventoyos=
\(
[a-zA-Z0-9_-]*
\)
.*/
\1
/"
/proc/cmdline
;
return
fi
echo
"default"
}
...
...
IMG/mkcpio.sh
View file @
8dce0add
...
...
@@ -21,6 +21,9 @@ cp -a $VENTOY_PATH/SQUASHFS/unsquashfs_* tool/
cp
-a
$VENTOY_PATH
/FUSEISO/vtoy_fuse_iso_
*
tool/
cp
-a
$VENTOY_PATH
/VtoyTool/vtoytool tool/
cp
-a
$VENTOY_PATH
/VBLADE/vblade-master/vblade_
*
tool/
cp
-a
$VENTOY_PATH
/LZIP/lunzip32 tool/
cp
-a
$VENTOY_PATH
/LZIP/lunzip64 tool/
chmod
-R
777 ./tool
...
...
IMG/vtloopex/LibreELEC/vtloopex/dm-mod/5.1.16/64/dm-mod.ko.xz
0 → 100644
View file @
8dce0add
File added
IMG/vtloopex/dragora/vtloopex/dm-mod/4.19.79-gnu/64/dm-mod.ko.xz
0 → 100644
View file @
8dce0add
File added
Prev
1
2
3
4
5
6
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment