mirror of https://github.com/ventoy/Ventoy.git
optimization for booting openwrt
This commit is contained in:
parent
f383052013
commit
d1679871a6
|
@ -27,6 +27,14 @@ vtlog "####### $0 $* ########"
|
|||
|
||||
VTPATH_OLD=$PATH; PATH=$BUSYBOX_PATH:$VTOY_PATH/tool:$PATH
|
||||
|
||||
for i in $(ls /sys/block/); do
|
||||
if ! [ -e /dev/$i ]; then
|
||||
blkdev_num=$(sed 's/:/ /g' /sys/block/$i/dev)
|
||||
vtlog "mknod -m 0666 /dev/$i b $blkdev_num"
|
||||
mknod -m 0666 /dev/$i b $blkdev_num
|
||||
fi
|
||||
done
|
||||
|
||||
wait_for_usb_disk_ready
|
||||
|
||||
vtdiskname=$(get_ventoy_disk_name)
|
||||
|
|
Loading…
Reference in New Issue