summaryrefslogtreecommitdiffstats
path: root/recipes/angstrom/angstrom-x11vnc-xinit.bb
blob: d4d9d432a6fcb87d134e7b8e72f8fb6266dceb68 (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_${PN} = "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"