Here's a preliminary script for acpi-support to support hot docking/undocking.
For the thinkpad "undock please" button to work, you need to unmask it in /proc/acpi/ibm/event; I'm not sure if acpi-support or hotkey-support do this already.
You'll need thinkpad-acpi loaded for that /proc bit to be present, and dock loaded for the stuff in /sys which this script pokes.
Note that this doesn't work with a bay present in the dock yet: so you get dockable power, usb, video/ps2 passthrough etc., but not IDE/ATA devices.
Here's a preliminary script for acpi-support to support hot docking/undocking.
For the thinkpad "undock please" button to work, you need to unmask it in /proc/acpi/ ibm/event; I'm not sure if acpi-support or hotkey-support do this already.
You'll need thinkpad-acpi loaded for that /proc bit to be present, and dock loaded for the stuff in /sys which this script pokes.
Note that this doesn't work with a bay present in the dock yet: so you get dockable power, usb, video/ps2 passthrough etc., but not IDE/ATA devices.