/etc/acpi/undock.sh is in acpi-support 0.142-8.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
for device in /sys/devices/platform/dock.*; do
[ -e "$device/type" ] || continue
read dt <$dt
[ "$dt" = dock_station ] || continue
echo 1 > "$device/undock"
done
|