milis/talimatname/genel/acpid/lid.sh

4 lines
91 B
Bash

#!/bin/sh
/bin/grep -q open /proc/acpi/button/lid/LID/state && exit 0
/usr/sbin/pm-suspend