pmaports/device/testing/device-sony-pioneer/device-sony-pioneer.post-install
Clayton Craft 5794852bf6
device-sony-pioneer: fix post-install script (MR 4618)
The leading space before the shebang was causing apk to fail.

[ci:skip-build]: Already built successfully in CI.
2023-12-10 22:05:32 +01:00

11 lines
476 B
Bash

#!/bin/sh
if [ -z "$(grep /dev/disk/by-partlabel/modem_a /etc/fstab)" ]; then
# Firmware shipped with the stock ROM, _a is always populated
echo "/dev/disk/by-partlabel/modem_a /opt/firmware/modem auto ro 0 0" >> /etc/fstab
fi
if [ -z "$(grep /dev/disk/by-partlabel/oem_a /etc/fstab)" ]; then
# ODM blobs provided by Sony Open Devices Project
echo "/dev/disk/by-partlabel/oem_a /opt/firmware/odm auto ro 0 0" >> /etc/fstab
fi