| Index: src/platform/acpi/action_lid.sh
|
| diff --git a/src/platform/acpi/action_lid.sh b/src/platform/acpi/action_lid.sh
|
| index 48decf55461e10f0076add8a88e7628b291bf3c4..48c8821e7e52a602507d7aae49450ae3f10e28a5 100755
|
| --- a/src/platform/acpi/action_lid.sh
|
| +++ b/src/platform/acpi/action_lid.sh
|
| @@ -4,6 +4,12 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +# Shutdown instead of sleeping if no one is logged in
|
| +if ! test -f /var/run/state/logged-in; then
|
| + shutdown -h now
|
| + exit 0
|
| +fi
|
| +
|
| # On lid close:
|
| # - lock the screen
|
| export HOME=/home/chronos
|
|
|