blob: a0987263aa42c7eb45a348d15b8d0682621ffaa3 [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 out"
author "chromium-os-dev@chromium.org"
# Use 'start on stopping' and 'task' to hold up restarting the
# session manager until we're done with marking the state change.
start on stopping ui
task
script
# Indicate that we're no longer logged in
rm -f /var/run/state/logged-in
rm -f /var/run/state/windowmanager/initial-chrome-window-mapped
# Pop user's network profile pushed in login.conf
# NB: must quote ~chronos; don't want it expanded
profile_name='~chronos/shill'
if [ -f /home/chronos/.disable_shill ]; then
profile_name='~chronos/flimflam'
fi
dbus-send --system --dest=org.chromium.flimflam --print-reply / \
org.chromium.flimflam.Manager.PopProfile string:$profile_name
end script