From 491b9879861573db507cf0429fcf5e2d75a2e265 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 21 Oct 2013 20:33:30 +0200 Subject: hdmi: add udev rule to start an X output on hotplug --- recipes-core/hdmi-hotplug/hdmi-hotplug.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 recipes-core/hdmi-hotplug/hdmi-hotplug.bb (limited to 'recipes-core/hdmi-hotplug/hdmi-hotplug.bb') diff --git a/recipes-core/hdmi-hotplug/hdmi-hotplug.bb b/recipes-core/hdmi-hotplug/hdmi-hotplug.bb new file mode 100644 index 0000000..ee89956 --- /dev/null +++ b/recipes-core/hdmi-hotplug/hdmi-hotplug.bb @@ -0,0 +1,20 @@ +SECTION = "core" +DESCRIPTION = "Use xrandr after a HDMI hotplug event has been detected to switch the display on" +RDEPENDS_${PN} = "" +# The license is meant for this recipe and the files it installs. +# RNDIS is part of the kernel, udhcpd is part of busybox +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" + +PR = "r1" + +PACKAGE_ARCH = "all" + +SRC_URI = " \ + file://hdmi.rules \ +" + +do_install() { + install -d ${D}/${sysconfdir}/udev/rules.d + install -m 0644 ${WORKDIR}/hdmi.rules ${D}/${sysconfdir}/udev/rules.d/ +} -- cgit v1.2.3