blob: 7e585626fed58781e048065dc1ff162443977e5e [file] [log] [blame]
# Copyright 2016 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 "Create servod usb lock file to coordinate usb detection"
author "chromium-os-dev@chromium.org"
start on started system-services
script
SERVOD_USB_LOCK_FILE="/var/lib/servod/lock_file"
if [ ! -f "${SERVOD_USB_LOCK_FILE}" ] ; then
touch "${SERVOD_USB_LOCK_FILE}"
chmod 444 "${SERVOD_USB_LOCK_FILE}"
fi
end script