Use service name matching binary name
Rename: sysmobts -> osmo-bts-sysmo (available in master since 114293a414bd5b7c86622ec8c293c4034c80d243) sysmopcu -> osmo-pcu (available in master since 241f5bcb00f9c6fee4200a3aea9aa497bf0d3eee) Old names are still available via alias.
This commit is contained in:
parent
a121475a64
commit
cc4ab049af
|
@ -59,8 +59,8 @@ do_install_append_sysmobts-v2() {
|
||||||
# Install systemd and enable on sysinit
|
# Install systemd and enable on sysinit
|
||||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
install -m 0660 ${S}/doc/examples/sysmo/sysmobts-mgr.cfg ${D}${sysconfdir}/osmocom
|
||||||
install -m 0644 ${S}/contrib/sysmobts.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${S}/contrib/osmo-bts-sysmo.service ${D}${systemd_unitdir}/system/
|
||||||
ln -sf ../sysmobts.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
ln -sf ../osmo-bts-sysmo.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_sysmobts2100() {
|
do_install_append_sysmobts2100() {
|
||||||
|
|
|
@ -29,8 +29,8 @@ CPPFLAGS_append_sysmobts-v2 = " ${BTS_HW_VERSION} "
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
# Install systemd and enable on sysinit
|
# Install systemd and enable on sysinit
|
||||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
install -m 0644 ${S}/contrib/sysmopcu.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${S}/contrib/osmo-pcu.service ${D}${systemd_unitdir}/system/
|
||||||
ln -sf ../sysmopcu.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
ln -sf ../osmo-pcu.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${systemd_unitdir}"
|
FILES_${PN} += "${systemd_unitdir}"
|
||||||
|
|
Loading…
Reference in New Issue