diff options
-rwxr-xr-x | modules.d/slx-network/hooks/activate-stage4-dhcp.sh | 3 |
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" \ |