blob: 7e26476d593de957c77b7d6658ef61597fc2b6ee (
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
}
|