Skip to content

Commit

Permalink
Adjusting to live-initramfs.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Oct 8, 2007
1 parent faa3497 commit e81ffda
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions scripts/live-premount/10driver_updates
Expand Up @@ -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
Expand All @@ -55,7 +59,7 @@ is_updates_path ()
fi
done

return 1;
return 1
}

is_nice_device ()
Expand Down

0 comments on commit e81ffda

Please sign in to comment.