optimization for booting openwrt

This commit is contained in:
longpanda 2021-06-20 20:20:17 +08:00
parent f383052013
commit d1679871a6
1 changed files with 8 additions and 0 deletions

View File

@ -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)