pmaports/device/testing/device-sony-pioneer/device-sony-pioneer.post-install
Max Buchholz c1d23e5fdb
sony-pioneer: new device (MR 4207)
Note by ollieparanoid:
Based on Konrad Dybcio's great work in MR 1645.

[ci:skip-build]: already built successfully in CI
2023-07-05 23:00:36 +02:00

11 lines
477 B
Text

#!/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