diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-10-09 00:34:00 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | a95723c3df57eee5676190321e80057960ab039a (patch) | |
| tree | eece3df3d762f6ab7530e5cbc0d0056067e54823 /scripts | |
| parent | b9f1a7fdf6528f3af7ed94af70cdd2567351ca2d (diff) | |
| download | live-boot-a95723c3df57eee5676190321e80057960ab039a.tar.gz live-boot-a95723c3df57eee5676190321e80057960ab039a.zip | |
Adjusting to live-initramfs.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-premount/10driver_updates | 18 |
1 files 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 () |
