pmaports/device/testing/device-t2m-flame/device-t2m-flame.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

21 lines
550 B
Bash

#!/bin/sh
# Add firmware partition mount points
mkdir /data
mkdir /persist
mkdir /modem
# Add firmware partitions to fstab
if [ -z "$(grep /data /etc/fstab)" ]; then
echo "/dev/mmcblk0p29 /data ext4 defaults 0 2" >> /etc/fstab
fi
if [ -z "$(grep /persist /etc/fstab)" ]; then
echo "/dev/mmcblk0p13 /persist ext4 defaults 0 2" >> /etc/fstab
fi
if [ -z "$(grep /modem /etc/fstab)" ]; then
echo "/dev/mmcblk0p1 /modem vfat defaults 0 2" >> /etc/fstab
fi
exit 0