Add sysmocom-3g-image

This commit is contained in:
Daniel Willmann 2017-05-08 16:26:57 +02:00 committed by Daniel Willmann
parent 4f2ba173f3
commit 5c8ef349c5
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
require sysmocom-image.inc
IMAGE_INSTALL += " task-sysmocom-3g "
# Activate osmo-hlr, osmo-msc, osmo-sgsn and openggsn for 3G
activate_core() {
}
activate_systemd_core() {
ln -sf ${systemd_unitdir}/system/osmo-msc.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
ln -sf ${systemd_unitdir}/system/osmo-sgsn.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
ln -sf ${systemd_unitdir}/system/osmo-hlr.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
ln -sf ${systemd_unitdir}/system/openggsn.service ${IMAGE_ROOTFS}/etc/systemd/system/multi-user.target.wants/
}
IMAGE_PREPROCESS_COMMAND += "${@base_contains('DISTRO_FEATURES','systemd','activate_systemd_core','activate_core',d)}; "