This file is indexed.

/etc/acpi/undock.sh is in acpi-support 0.142.

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
#!/bin/sh

test -f /usr/share/acpi-support/key-constants || exit 0

for device in /sys/devices/platform/dock.*; do
	[ -e "$device/type" ] || continue
	[ x$(cat "$device/type") = xdock_station ] || continue
	echo 1 > "$device/undock"
done