summaryrefslogtreecommitdiff
path: root/recipes-core/base-files/base-files/x11-display-var.sh
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2019-06-27 17:21:21 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2019-07-01 14:41:43 +0200
commitd39bc8a5dbf180bedbb7a2ecdc66d5ead8ce6e06 (patch)
tree2686b28de4ec7b6269268b47647a87ff01762c3e /recipes-core/base-files/base-files/x11-display-var.sh
parentc616bfd03c80bf2eec2d8ecf54b15a6d520d3b86 (diff)
base-files: rework /etc/profile
Put the changes we want to make to the default into scripts in /etc/profile.d and keep the openembedded-core provided /etc/profile. This keeps the maintained version of /etc/profile rather than having to manually merge in fixes from the openembedded layer. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-core/base-files/base-files/x11-display-var.sh')
-rw-r--r--recipes-core/base-files/base-files/x11-display-var.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/recipes-core/base-files/base-files/x11-display-var.sh b/recipes-core/base-files/base-files/x11-display-var.sh
new file mode 100644
index 0000000..ee0eeeb
--- /dev/null
+++ b/recipes-core/base-files/base-files/x11-display-var.sh
@@ -0,0 +1 @@
+test -z "$DISPLAY" && DISPLAY=":0.0" # have the X display defined, unless it is already set, e.g. by a ssh connection