| # 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 "Determine whether to allow certain keyboard hotkey sequences" |
| author "chromium-os-dev@chromium.org" |
| |
| # This job determines whether to enable the console hotkeys for 'sysrq'. |
| start on startup |
| |
| script |
| |
| # Only allow the 'x' sysrq key, unless this is a "developer system". |
| if is_developer_end_user; then |
| # developer end-user - allow the keys |
| echo 1 > /proc/sys/kernel/sysrq |
| else |
| # consumer end-user - only allow the sysrq 'x' key. |
| echo 0x1000 > /proc/sys/kernel/sysrq |
| fi |
| end script |