X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F40install_driver_updates;h=584dcd0244fec94d1a63ba54981ace536352d9c5;hb=1e0a488b895cd6e2bf7141aa730f17da42a490f7;hp=762a084c9e02a5e41a9119c38a91dc03dd987758;hpb=6e285bb09a4493086a7b850ef1a43081402163fc;p=live-boot-grml.git diff --git a/scripts/live-bottom/40install_driver_updates b/scripts/live-bottom/40install_driver_updates index 762a084..584dcd0 100755 --- a/scripts/live-bottom/40install_driver_updates +++ b/scripts/live-bottom/40install_driver_updates @@ -33,18 +33,18 @@ log_begin_msg "Installing driver updates..." install_dir=/var/cache/driver-updates -mkdir "/root$install_dir" -cp -a /tmp/driver-updates/*.deb "/root$install_dir/" +mkdir "/root${install_dir}" +cp -a /tmp/driver-updates/*.deb "/root${install_dir}/" # We cannot leave packages in a bad state. So if the install fails, remove # it. This will get caught in live.log. -for deb in "/root$install_dir"/* +for deb in "/root${install_dir}"/* do - [ -f "$deb" ] || continue + [ -f "${deb}" ] || continue debbase="${deb##*/}" - if ! chroot /root dpkg -i "$install_dir/$debbase" + if ! chroot /root dpkg -i "${install_dir}/${debbase}" then chroot /root dpkg -P "${debbase%%_*}" fi