[ltp] ultrabay hotswap

Maik Zumstrull linux-thinkpad@linux-thinkpad.org
Fri, 17 Jun 2005 14:15:21 +0200 (CEST)


Aaron Mulder wrote:

> 	Would this work for swapping between a battery and DVD drive,
> even though one of them is not a "hd" device?  That would be really
> handy.

Have the script check /proc/acpi/ibm/bay before rescanning the IDE bus.
The bay is shown to be "unoccupied" if it contains a battery.