diff options
Diffstat (limited to 'recipes-misc/de10-nano-synergy-init')
-rw-r--r-- | recipes-misc/de10-nano-synergy-init/de10-nano-synergy-init.bb | 31 | ||||
-rw-r--r-- | recipes-misc/de10-nano-synergy-init/files/de10-nano-synergy-init.service | 12 |
2 files changed, 43 insertions, 0 deletions
diff --git a/recipes-misc/de10-nano-synergy-init/de10-nano-synergy-init.bb b/recipes-misc/de10-nano-synergy-init/de10-nano-synergy-init.bb new file mode 100644 index 0000000..c08a74d --- /dev/null +++ b/recipes-misc/de10-nano-synergy-init/de10-nano-synergy-init.bb @@ -0,0 +1,31 @@ +SUMMARY = "DE-Nano initialize synergy client" +DESCRIPTION = "Scripts to start synergy client" +AUTHOR = "Dalon Westergreen <dwesterg@gmail.com>" +SECTION = "DE10-Nano" + +PR = "r0" + +inherit systemd + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +PV = "1.0${PR}" + +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +SRC_URI = "file://de10-nano-synergy-init.service \ + " + +do_install() { + install -d ${D}${base_libdir}/systemd/system + install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system +} + +FILES_${PN} = "${base_libdir}/systemd/system/de10-nano-synergy-init.service \ + ${sysconfdir}/systemd/ \ + " + +NATIVE_SYSTEMD_SUPPORT = "1" +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE_${PN} = "de10-nano-synergy-init.service" diff --git a/recipes-misc/de10-nano-synergy-init/files/de10-nano-synergy-init.service b/recipes-misc/de10-nano-synergy-init/files/de10-nano-synergy-init.service new file mode 100644 index 0000000..ccea7d7 --- /dev/null +++ b/recipes-misc/de10-nano-synergy-init/files/de10-nano-synergy-init.service @@ -0,0 +1,12 @@ +[Unit] +Description=Start synergy client +After=de10-nano-xfce-init.service systemd-networkd-wait-online.service + +[Service] +Type=forking +ExecStart=/usr/bin/synergyc --restart --daemon 192.168.7.5 +Restart=always +RestartSec=5 + +[Install] +WantedBy=basic.target |