summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-08-08 14:55:56 +0200
committerJonathan Bauer2019-08-08 14:55:56 +0200
commitce1558966a8481d04f1ff78c1b58a91740513e69 (patch)
tree58c2042c79d57eea8ecefb413c1da805203a033f /builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
parent[slx-network] support for dhcp in stage4 (diff)
downloadsystemd-init-ce1558966a8481d04f1ff78c1b58a91740513e69.tar.gz
systemd-init-ce1558966a8481d04f1ff78c1b58a91740513e69.tar.xz
systemd-init-ce1558966a8481d04f1ff78c1b58a91740513e69.zip
[slx-network] only care about main bootif
+ rdns
Diffstat (limited to 'builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh')
-rw-r--r--builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh b/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
index 93ca850d..179254d0 100644
--- a/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
+++ b/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
@@ -12,11 +12,8 @@ done
# copy udhcpc@ systemd service, backup existing ones for debugging
mkdir -p "${NEWROOT}/etc/systemd/system"
-if [ -e "${NEWROOT}/etc/systemd/system/udhcpc@.service" ]; then
- mv "${NEWROOT}/etc/systemd/system/udhcpc@.service"{,.stage4}
-fi
-cp -f "/opt/openslx/services/udhcpc@.service" "${NEWROOT}/etc/systemd/system"
+cp -f "/opt/openslx/services/udhcpc-bootif.service" "${NEWROOT}/etc/systemd/system"
# activate it for the bridge or the physical interface if not bridged
-systemctl --root "$NEWROOT" enable "udhcpc@${SLX_BRIDGE:-${SLX_PXE_NETIF}}"
+systemctl --root "$NEWROOT" enable "udhcpc-bootif"