diff --git a/recipes-sysmobts/osmo-bts/osmo-bts_git.bb b/recipes-sysmobts/osmo-bts/osmo-bts_git.bb index c12a727..b3c8fa2 100644 --- a/recipes-sysmobts/osmo-bts/osmo-bts_git.bb +++ b/recipes-sysmobts/osmo-bts/osmo-bts_git.bb @@ -7,7 +7,7 @@ SRC_URI = "git://git.osmocom.org/osmo-bts.git;protocol=git;branch=sysmocom/0.3.0 SRCREV_osmobts = "b2a8a642d65779918f64437b5cbbde8e206222f2" SRCREV_openbsc = "caa98d51b64e16bbe6d4933d9052b617432e5e22" PV = "0.3.0+git${SRCPV}" -PR = "r1.${META_TELEPHONY_OSMO_INC}" +PR = "r2.${META_TELEPHONY_OSMO_INC}" S = "${WORKDIR}/git" SRCREV_FORMAT = "openbsc-rosmobts" @@ -40,6 +40,10 @@ do_install_append() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${S}/contrib/sysmobts.init ${D}${sysconfdir}/init.d/sysmobts + # Install systemd and enable on sysinit + install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/ + install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/ + ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ } do_install_append_sysmobts-v2() { @@ -53,6 +57,7 @@ INITSCRIPT_PARAMS_${PN} = "defaults 30 30" PACKAGES =+ "osmo-bts-remote sysmobts-calib sysmobts-util" +FILES_${PN} += "${systemd_unitdir}" FILES_osmo-bts-remote = " ${bindir}/sysmobts-remote " FILES_sysmobts-calib = " ${bindir}/sysmobts-calib " FILES_sysmobts-util = " ${bindir}/sysmobts-util "