Adjusting to live-initramfs.
authorDaniel Baumann <daniel@debian.org>
Mon, 8 Oct 2007 22:34:00 +0000 (00:34 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:31:06 +0000 (17:31 +0100)
scripts/live-premount/10driver_updates

index 3ad9ef6..eda8bbf 100755 (executable)
@@ -41,12 +41,16 @@ is_updates_path ()
        # kernel flavour.
 
        path=${1}
-        abi="$(uname -r)"
-        kver="$(echo "$abi" | cut -d- -f1,2)"
-        kbase="$(echo "$abi" | cut -d- -f1)"
-        for leaf in "$abi" "$kver" "$kbase"; do
-                update_dir="$path/ubuntu-drivers/$leaf"
-                [ -d "$update_dir" ] || continue
+       abi="$(uname -r)"
+       kver="$(echo "$abi" | cut -d- -f1,2)"
+       kbase="$(echo "$abi" | cut -d- -f1)"
+
+       for leaf in "$abi" "$kver" "$kbase"
+       do
+               update_dir="$path/ubuntu-drivers/$leaf"
+
+               [ -d "$update_dir" ] || continue
+
                if [ "$(echo ${update_dir}/*_${DPKG_ARCH}.deb)" != \
                        "${update_dir}/*_${DPKG_ARCH}.deb" ]
                then
@@ -55,7 +59,7 @@ is_updates_path ()
                fi
        done
 
-       return 1;
+       return 1
 }
 
 is_nice_device ()