blob: daf81fd70dd8e69012d957c8e513a9dc0b8d9e19 [file] [log] [blame]
Stewart Smitha9ebe672019-12-08 22:48:04 -08001#!/bin/sh
2#
3# Copyright © 2020 Stewart Smith
4# Released under the GNU GPL v3
5
6COMPAT_NODE=/sys/bus/platform/devices/ibm,opal:oppanel/of_node/compatible
7
8case "$1" in
9 start)
10 # Only talk to the rcs,ipl-observer device this way
11 # it's a little bit of a hack, but it's functionally
12 # equivalent to the Raptor build but not relying on debugfs
13 grep rcs,ipl-observer $COMPAT_NODE > /dev/null \
14 && printf '\xfe\xfe\xfe' > /dev/op_panel
15 ;;
16esac
17
18exit 0