summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-07-04 18:57:54 +0200
committerSimon Rettberg2024-07-04 18:57:54 +0200
commita5d5caea5005ea1b14928e51204d267ed31bcff8 (patch)
tree77cb7339440ce82822f72a3e47be60970bbc1890
parent[slx-network] Fix copying stage4 dhcp files (diff)
downloadsystemd-init-a5d5caea5005ea1b14928e51204d267ed31bcff8.tar.gz
systemd-init-a5d5caea5005ea1b14928e51204d267ed31bcff8.tar.xz
systemd-init-a5d5caea5005ea1b14928e51204d267ed31bcff8.zip
[slx-network] Disable stage4 dhcp by default
-rwxr-xr-xmodules.d/slx-network/hooks/activate-stage4-dhcp.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules.d/slx-network/hooks/activate-stage4-dhcp.sh b/modules.d/slx-network/hooks/activate-stage4-dhcp.sh
index 1394d34c..ceaa4a95 100755
--- a/modules.d/slx-network/hooks/activate-stage4-dhcp.sh
+++ b/modules.d/slx-network/hooks/activate-stage4-dhcp.sh
@@ -6,8 +6,7 @@
. /etc/openslx
-if [ "$SLX_STAGE4_DHCP" != "no" ] \
- && ! [ -e "${NEWROOT}/opt/openslx/scripts/udhcpc-openslx" ]; then
+if [ "$SLX_STAGE4_DHCP" = "yes" ]; then
mkdir -p "${NEWROOT}/opt/openslx/scripts"
for script in setup-bootif-network udhcpc-trigger; do
cp -n "/opt/openslx/scripts/${script}.stage4" \