summaryrefslogtreecommitdiffstats
path: root/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc')
-rw-r--r--recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc b/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc
new file mode 100644
index 00000000..73edc67d
--- /dev/null
+++ b/recipes-core/psplash/psplash-portrait-config_agl-container-guest-demo.inc
@@ -0,0 +1,15 @@
+do_install[depends] = "psplash:do_populate_sysroot"
+
+do_install() {
+ # Install override
+ psplash_service="${STAGING_DIR_TARGET}/${systemd_system_unitdir}/psplash-start.service"
+ if [ ! -f "$psplash_service" ]; then
+ echo "ERROR: psplash service unit file not found: $psplash_service" >&2
+ exit 1
+ fi
+ install -d ${D}${systemd_system_unitdir}/psplash-start.service.d
+ psplash_portrait_conf="${D}${systemd_system_unitdir}/psplash-start.service.d/psplash-portrait.conf"
+ echo "[Service]" > "$psplash_portrait_conf"
+ echo "ExecStart=" >> "$psplash_portrait_conf"
+ sed -ne 's!^\(ExecStart=/usr/bin/psplash.*\)!\1 --angle 90!p' "$psplash_service" >> "$psplash_portrait_conf"
+}