Break search loop asap
authorSebastian Pipping <sebastian@pipping.org>
Sun, 9 Jan 2011 18:10:47 +0000 (19:10 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 9 Jan 2011 18:26:53 +0000 (19:26 +0100)
defaults/initrd.scripts

index f9e792701bd92ceaa2514fbb25fa5e5871b55106..f14333a35fc7c374beb8a92e561e755e09449a4e 100755 (executable)
@@ -420,7 +420,7 @@ check_slowusb() {
        for x in "${usb_storage_dir}"/*
        do
                [ -d "${x}" ]  && [ "${x}" != "${usb_storage_dir}/module" ] \
-                       && FORCE_slowusb="1"
+                       && { FORCE_slowusb="1" ; break ; }
        done
 }