You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
295 B

8 years ago
#!/bin/sh
set -u
set -e
# Mount first partition to access config files
if [ -e ${TARGET_DIR}/etc/fstab ]; then
if ! grep -qE '^\/dev\/mmcblk0p1' "${TARGET_DIR}/etc/fstab"; then
cat << __EOF__ >> "${TARGET_DIR}/etc/fstab"
/dev/mmcblk0p1 /mnt vfat defaults,ro 0 0
__EOF__
fi
fi