pmaports/device/testing/firmware-samsung-klte/modem-firmware-mount.initd
2021-07-10 13:44:18 +03:00

23 lines
503 B
Text

#!/sbin/openrc-run
description="Mount modem firmware partition"
MODEM_FW_PARTITION="/dev/mmcblk0p2"
# NOTE: Can't use /dev/disk/by-partlabel symlinks
# here before udev is started
MNT_POINT="/mnt/firmware-modem"
depend() {
# We need to mount modem partition before any
# module is loaded by udev
before udev
}
start() {
echo "modem-firmare-mount: starting" > /dev/kmsg
ebegin "Mounting modem firmware partition..."
mount -t vfat -o ro "${MODEM_FW_PARTITION}" "${MNT_POINT}"
eend $?
}