blob: 5c8543389c20b2bf1d61bb43b9e3061fdb22946c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
do_install_prepend () {
# provide machine-specific /etc/rotation for psplash
sed -n 's/^[ \t]*DISPLAY_ORIENTATION[ \t]*//p' ${S}/machconfig | tr -dc '[0-9]' > ${S}/rotation
}
do_install_append () {
# Only install file if it has a content
if [ -s "${S}/rotation" ]; then
install -d ${D}${sysconfdir}
install -m 0644 ${S}/rotation ${D}${sysconfdir}/rotation
fi
}
|