pmaports/device/device-mozilla-flame/device-mozilla-flame.post-install
Yuval Adam 645141a5b9 Better Mozilla Flame device support (#435)
* No need to append DTB to kernel
* Remove kernel module build for now
* Add device-specific firmware package
* Add special partitions to fstab
* Fix typo in screen width
2017-08-21 19:38:11 +00: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