X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-premount%2F10driver_updates;h=546d3ca689775c56a4c97aca15941ff6d49e97be;hb=cbd507880fa1db3c68b1b89e4c27f0001da8a7d0;hp=55aece5610172a00a43ade6357c338b2c90bffb2;hpb=292e65d84b99afa4c9240c23e1433b828af80ba3;p=live-boot-grml.git diff --git a/scripts/live-premount/10driver_updates b/scripts/live-premount/10driver_updates index 55aece5..546d3ca 100755 --- a/scripts/live-premount/10driver_updates +++ b/scripts/live-premount/10driver_updates @@ -38,7 +38,7 @@ is_updates_path() { is_nice_device() { sysfs_path="${1#/sys}" - if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])"; then + if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-(ide|scsi|usb))"; then return 0 fi return 1 @@ -130,7 +130,11 @@ fi # GDMCONF=/etc/gdm/gdm.conf #fi -eject +if [ -x /usr/bin/eject ] +then + eject +fi + log_wait_msg "Insert a driver CD and press ENTER ($DPKG_ARCH)" log_begin_msg "Looking for driver update CD" @@ -156,7 +160,11 @@ log_begin_msg "Copying driver updates to temporary location" mkdir -p /tmp/driver-updates cp $updates_root/*_$DPKG_ARCH.deb /tmp/driver-updates/ umount $mountpoint -eject + +if [ -x /usr/bin/eject ] +then + eject +fi log_end_msg