summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
diff options
context:
space:
mode:
authorJonathan Bauer2020-05-13 11:04:02 +0200
committerJonathan Bauer2020-05-13 11:04:02 +0200
commit1130873aa55c9b0a7e5af48edc44bd6c6fd1f888 (patch)
tree0fcfa186cd631d8d36611b3d4bc509fd38841d51 /builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
parentMerge branch 'centos8' into downloader (diff)
downloadsystemd-init-1130873aa55c9b0a7e5af48edc44bd6c6fd1f888.tar.gz
systemd-init-1130873aa55c9b0a7e5af48edc44bd6c6fd1f888.tar.xz
systemd-init-1130873aa55c9b0a7e5af48edc44bd6c6fd1f888.zip
restructure repo
* remove packager * move everything from builder/* back to root
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.sh26
1 files changed, 0 insertions, 26 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
deleted file mode 100644
index f5345c61..00000000
--- a/builder/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-#
-# This script configures the udhcpc-based DHCP service for
-# within stage4, unless specifically disabled by SLX_STAGE4_DHCP
-
-. /etc/openslx
-[ -n "$SLX_STAGE4_DHCP" ] || exit 0
-
-for script in setup-bootif-network udhcpc-trigger; do
- if [ -e "${NEWROOT}/opt/openslx/scripts/${script}" ]; then
- mv "${NEWROOT}/opt/openslx/scripts/${script}"{,.stage4}
- fi
- cp -f "/opt/openslx/scripts/${script}.stage4" \
- "${NEWROOT}/opt/openslx/scripts/${script}"
-done
-
-# copy udhcpc@ systemd service, backup existing ones for debugging
-mkdir -p "${NEWROOT}/etc/systemd/system"
-cp -f "/opt/openslx/services/udhcpc-bootif.service" "${NEWROOT}/etc/systemd/system"
-
-# it requires /run/network
-echo 'd /run/network 0755 root root' > "${NEWROOT}/etc/tmpfiles.d/network.conf"
-
-# activate it for the bridge or the physical interface if not bridged
-systemctl --quiet --root "$NEWROOT" enable "udhcpc-bootif"
-