blob: c4d20adf2aa1717c28b05932534c9ac46635ce7f [file] [log] [blame] [edit]
#!/bin/sh
# Copyright 2017 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.
# Change ownership of relevant nodes in a sysfs backlight directory
# so powerd can use them.
# 99-powerd-permissions.rules passes the sysfs device path as $1.
# Different sysfs nodes are present on different hardware.
chown -f power:power "$1"/*brightness "$1"/bl_power || true