Files
docker-armsfp/generic/scripts/setup.sh
T
2016-01-07 23:11:40 +01:00

21 lines
374 B
Bash
Executable File

#!/bin/bash
/usr/sbin/env-update
. /etc/profile
setup_bootfs_fstab() {
# add /dev/mmcblk0p1 to /etc/fstab
local boot_part_type="${1}"
echo "/dev/mmcblk0p1 /boot ${boot_part_type} defaults 0 2" >> /etc/fstab
}
setup_rootfs_fstab() {
echo "/dev/mmcblk0p2 / ext4 noatime 0 1" >> /etc/fstab
}
rm -rfv /etc/fstab
#setup_bootfs_fstab "vfat"
setup_rootfs_fstab
exit 0