b1d88b7bf0
[ci:skip-build] already built successfully in CI
21 lines
387 B
Text
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 $?
|
|
}
|