]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/ventoy-hook-lib.sh
1. Fix the blank item in the last of Language select menu
[Ventoy.git] / IMG / cpio / ventoy / hook / ventoy-hook-lib.sh
index f6d9cb0fb128ae12f7bee267cf845f64403e1892..b367895b2dd000e37412136fbc1077fc390fcd21 100644 (file)
@@ -892,3 +892,17 @@ ventoy_check_umount() {
         fi
     done
 }
+
+ventoy_wait_dir() {
+    vtdir=$1
+    vtsec=0
+    
+    while [ $vtsec -lt $2 ]; do
+        if [ -d "$vtdir" ]; then
+            break
+        else
+            $SLEEP 1
+            vtsec=$(expr $vtsec + 1)
+        fi
+    done
+}