summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-network/hooks/activate-bootif-dhcp.sh')
-rw-r--r--modules.d/slx-network/hooks/activate-bootif-dhcp.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules.d/slx-network/hooks/activate-bootif-dhcp.sh b/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
index 7a7d797d..28e80f48 100644
--- a/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
+++ b/modules.d/slx-network/hooks/activate-bootif-dhcp.sh
@@ -1,10 +1,11 @@
#!/bin/bash
#
-# This script configures the udhcpc-based DHCP service for
-# within stage4, unless specifically disabled by SLX_STAGE4_DHCP
+# This script enables the udhcpc-based DHCP service for stage4,
+# unless specifically disabled by 'SLX_STAGE4_DHCP="no"'.
. /etc/openslx
-if [ "$SLX_STAGE4_DHCP" = "yes" ]; then
+
+if [ "$SLX_STAGE4_DHCP" != "no" ]; then
mkdir -p "${NEWROOT}/opt/openslx/scripts"
for script in setup-bootif-network udhcpc-trigger; do
if [ -e "${NEWROOT}/opt/openslx/scripts/${script}" ]; then
@@ -24,4 +25,5 @@ if [ "$SLX_STAGE4_DHCP" = "yes" ]; then
# activate it for the bridge or the physical interface if not bridged
systemctl --quiet --root "$NEWROOT" enable "udhcpc-bootif"
fi
-true
+
+: