summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2015-10-20 09:05:08 (GMT)
committerJonathan Maw <jonathan.maw@codethink.co.uk>2015-10-20 09:05:08 (GMT)
commitda4c2142940872659ea8f7bfcff53f79281e214c (patch)
treedaf50889316181d4d7444cc7c66be692a64bdd63
parent39bc875880d3ca2d0617f84a213d536f210d28be (diff)
downloaddefinitions-baserock/jonathanmaw/k1.0-fixes.tar.gz
gdp-HMI: implement poweroff buttonbaserock/jonathanmaw/k1.0-fixes
-rw-r--r--strata/genivi-demo-platform/genivi-demo-platform-hmi.morph8
1 files changed, 8 insertions, 0 deletions
diff --git a/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph b/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph
index 767ea3c..4e545f6 100644
--- a/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph
+++ b/strata/genivi-demo-platform/genivi-demo-platform-hmi.morph
@@ -147,3 +147,11 @@ install-commands:
[Service]
ExecStart=/usr/bin/qml-example
EOF
+- |
+ cat > "$DESTDIR/usr/lib/systemd/user/PowerOff.service" <<EOF
+ [Unit]
+ Description=HMI poweroff
+
+ [Service]
+ ExecStart=/bin/systemctl poweroff
+ EOF