From a95723c3df57eee5676190321e80057960ab039a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Oct 2007 00:34:00 +0200 Subject: [PATCH] Adjusting to live-initramfs. --- scripts/live-premount/10driver_updates | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/scripts/live-premount/10driver_updates b/scripts/live-premount/10driver_updates index 3ad9ef6..eda8bbf 100755 --- a/scripts/live-premount/10driver_updates +++ b/scripts/live-premount/10driver_updates @@ -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 () -- 2.1.4