blob: 7d4773624f100bc9510b92440737352eacc2593e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PR = "m4"
CONFFILES_${PN}_remove = "${sysconfdir}/fstab"
FILES_${PN}_remove = "${sysconfdir}/fstab"
# Create folders for generic mountpoints at build time
dirs755_append = " /var/config \
/var/oem \
/var/persistent \
"
do_install_append() {
if [ -d ${D}/media ] ; then
rmdir ${D}/media # So the next line does not nest the media link inside of media
fi
ln -snf /run/media ${D}/media
set -x
if [ -f ${D}/${sysconfdir}/fstab ] ; then
rm ${D}/${sysconfdir}/fstab
fi
set +x
rm -rf ${D}/tmp
ln -snf /var/tmp ${D}/tmp
cat >> ${D}${sysconfdir}/profile << 'EOT'
for g in $(groups) ; do
if [ "${g}" = sudo ] ; then
PATH+=":/sbin:/usr/sbin"
fi
done
EOT
}
|