summaryrefslogtreecommitdiff
path: root/recipes/angstrom/angstrom-x11vnc-xinit.bb
blob: ee21d81e03113251d667a42108326b1091073ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
DESCRIPTION = "Script to start a passwordless vnc of the current X session"
LICENSE = "MIT"
RDEPENDS = "x11vnc"

do_install() {
	install -d ${D}/${sysconfdir}/X11/Xinit.d
	echo "#!/bin/sh" > ${D}/${sysconfdir}/X11/Xinit.d/02vnc
	echo "x11vnc  -q -bg -display :0 -forever -avahi" >> ${D}/${sysconfdir}/X11/Xinit.d/02vnc
	chmod 0755 ${D}/${sysconfdir}/X11/Xinit.d/02vnc
}

CONFFILES_${PN} += "${sysconfdir}/X11/Xinit.d/02vnc"
PACKAGE_ARCH = "all"