pmaports/device/testing/device-kobo-clara/extract-waveform.initd
Timotej Lazar b1d88b7bf0
device-kobo-clara: add init script to extract EPD waveform (MR 2334)
[ci:skip-build] already built successfully in CI
2021-07-18 09:36:26 +02:00

21 lines
387 B
Text

#!/sbin/openrc-run
description="Extract EPD waveform blob to /lib/firmware"
depend() {
after root
}
start()
{
# Only run once
rm -f /etc/runlevels/*/$RC_SVCNAME
dir="/lib/firmware/imx/epdc"
ebegin "Copying EPD waveform to /lib/firmware..."
mkdir -p "$dir" && cd "$dir" \
&& extract-waveform.pl /dev/mmcblk0 epdc_PENG060D.fw \
&& ln -sf epdc_PENG060D.fw epdc.fw
eend $?
}