blob: 05c8799c5fe9973ecf0e15775f7119e443521b0c [file] [log] [blame]
# Copyright (c) 2011 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 "Mark that the user has logged in"
author "chromium-os-dev@chromium.org"
# We're a task to ensure that the state change is fully marked
# before session manager calls this step done.
start on start-user-session
task
script
# Perform connection-manager-specific login tasks.
# CHROMEOS_USER is an upstart-provided variable setting passed from
# session_manager via the 'start-user-session' event.
shill_login_user ${CHROMEOS_USER}
# The "logged-in" file is used by ACPI events to behave
# appropriately. The state directory is created earlier in
# session startup.
touch /var/run/state/logged-in
end script