enigma2-skins: add missing fields to control file parser
[opendreambox.git] / meta-opendreambox / recipes-core / base-files / base-files_3.0.14.bbappend
1 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3 # Inject the /boot partition into /etc/fstab. At image creation time,
4 # this is done by IMAGE_CMD_ubi.nfi (image_types_nfi.bbclass).
5 pkg_postinst_base-files() {
6 if [ -z "$D" ]; then
7         ROOT='\<root=ubi0:rootfs\>'
8         if grep -q $ROOT /proc/cmdline && ! grep -q '\s\+/boot\s\+' /etc/fstab; then
9                printf '/dev/mtdblock2\t/boot\t\tjffs2\tro\t\t\t\t0 0\n' >> /etc/fstab
10         fi
11         if grep -q '/dev/ubi0_1' /proc/mounts && ! grep -q '\s\+/data\s\+' /etc/fstab; then
12                 printf '/dev/ubi0_1\t/data\t\tubifs\trw,nofail\t\t\t\t0 0\n' >> /etc/fstab
13         fi
14 fi
15 }