pmaports/device/testing/device-motorola-titan/device-motorola-titan.post-install
Oliver Smith 64035ac463
device/*: move to device/testing/* (!1063)
Prepare for better device categorization by moving everything to testing
subdir first.

[skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR
				depends on this MR

Related: postmarketos#16
2020-03-14 08:35:32 +01:00

16 lines
423 B
Bash

#!/bin/sh
if [ -z "$(grep /mnt/firmware /etc/fstab)" ]; then
mkdir -p /mnt/firmware
echo "/dev/mmcblk0p1 /mnt/firmware auto ro 0 0" >> /etc/fstab
fi
if [ -z "$(grep /mnt/data /etc/fstab)" ]; then
mkdir -p /mnt/data
echo "/dev/mmcblk0p38 /mnt/data auto ro 0 0" >> /etc/fstab
fi
if [ -z "$(grep /mnt/persist /etc/fstab)" ]; then
mkdir -p /mnt/persist
echo "/dev/mmcblk0p29 /mnt/persist auto ro 0 0" >> /etc/fstab
fi