| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| description "Signal ready for clean shutdown to power manager" |
| author "chromium-os-dev@chromium.org" |
| |
| start on power-manager-clean-shutdown |
| task |
| |
| script |
| |
| CROMO=`initctl status cromo` |
| if [ "$CROMO" != "cromo stop/waiting" ]; then |
| initctl stop cromo |
| fi |
| /usr/bin/dbus-send --type=signal --system / \ |
| org.chromium.PowerManager.CleanShutdown |
| |
| end script |