1
# set-display-mir - creates .display-mir file once
3
author "Loïc Minier <loic.minier@ubuntu.com>"
4
description "Creates .display-mir file once"
6
# start when first boot-hooks event is emitted and before lxc-android-config
7
# starts as it disables SurfaceFlinger based on the Mir flag
8
start on boot-hooks and starting lxc-android-config
10
# NOT a task as otherwise this would block restarting lxc-android-config
15
env FLAG=.set-display-mir-done
16
env DISPLAY_MIR=.display-mir
18
# work needs to be done in pre-start as this really is a job with nothing to
21
# XXX this is what we should be using, but this job gets started with
22
# "WHEN=every-boot" and then doesn't get the second event for
24
#if [ "$WHEN" = "new-version" ] && [ ! -e "$FLAG" ]; then
25
if [ ! -e "$FLAG" ]; then
26
touch "$DISPLAY_MIR" "$FLAG"