Stewart Smith | a9ebe67 | 2019-12-08 22:48:04 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright © 2020 Stewart Smith |
| 4 | # Released under the GNU GPL v3 |
| 5 | |
| 6 | COMPAT_NODE=/sys/bus/platform/devices/ibm,opal:oppanel/of_node/compatible |
| 7 | |
| 8 | case "$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 | ;; |
| 16 | esac |
| 17 | |
| 18 | exit 0 |