Advertisement
Guest User

undock.sh

a guest
Sep 3rd, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. test -f /usr/share/acpi-support/key-constants || exit 0
  4.  
  5. for device in /sys/devices/platform/dock.*; do
  6. [ -e "$device/type" ] || continue
  7. [ x$(cat "$device/type") = xdock_station ] || continue
  8. echo 1 > "$device/undock"
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement