From 5c8ef349c530822a88ace747a5658ce77a58ff4d Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Mon, 8 May 2017 16:26:57 +0200 Subject: [PATCH] Add sysmocom-3g-image --- recipes-apps/images/sysmocom-3g-image.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-apps/images/sysmocom-3g-image.bb diff --git a/recipes-apps/images/sysmocom-3g-image.bb b/recipes-apps/images/sysmocom-3g-image.bb new file mode 100644 index 0000000..8700dd4 --- /dev/null +++ b/recipes-apps/images/sysmocom-3g-image.bb @@ -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)}; "