From 1ed9350964d1ca448aec0fcb9aa737b137fb3b7a Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Fri, 12 Dec 2014 17:40:05 +0100 Subject: [PATCH] sysmocom-udhcpd-config: start the udhcpd on the sysmocom-bsc only when eth1 is present * the change affects the config file, so the package number is bumped Related: SYS#735 --- .../sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service | 2 ++ ...{sysmocom-udhcpd-config_1.bb => sysmocom-udhcpd-config_2.bb} | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename recipes-apps/sysmocom-udhcpd-config/{sysmocom-udhcpd-config_1.bb => sysmocom-udhcpd-config_2.bb} (98%) diff --git a/recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service b/recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service index 6b92866..745b78a 100644 --- a/recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service +++ b/recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service @@ -1,5 +1,7 @@ [Unit] Description=UDHCPD +Requires=sys-subsystem-net-devices-eth1.device +After=sys-subsystem-net-devices-eth1.device [Service] Type=simple diff --git a/recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_1.bb b/recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_2.bb similarity index 98% rename from recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_1.bb rename to recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_2.bb index 3e787fe..1b4feab 100644 --- a/recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_1.bb +++ b/recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_2.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ SRC_URI = "file://udhcpd.conf \ file://udhcpd.service \ " -PR = "r5" +PR = "r0" CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf" FILES_${PN} += "${systemd_unitdir}"