diff options
Diffstat (limited to 'core/modules/slx-network-configs-targets')
3 files changed, 0 insertions, 26 deletions
diff --git a/core/modules/slx-network-configs-targets/data/etc/systemd/system/network.target.wants/slx-wait-primary-dhcp.service b/core/modules/slx-network-configs-targets/data/etc/systemd/system/network.target.wants/slx-wait-primary-dhcp.service deleted file mode 120000 index e7f32c14..00000000 --- a/core/modules/slx-network-configs-targets/data/etc/systemd/system/network.target.wants/slx-wait-primary-dhcp.service +++ /dev/null @@ -1 +0,0 @@ -../slx-wait-primary-dhcp.service
\ No newline at end of file diff --git a/core/modules/slx-network-configs-targets/data/etc/systemd/system/slx-wait-primary-dhcp.service b/core/modules/slx-network-configs-targets/data/etc/systemd/system/slx-wait-primary-dhcp.service deleted file mode 100644 index 68dc13f7..00000000 --- a/core/modules/slx-network-configs-targets/data/etc/systemd/system/slx-wait-primary-dhcp.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Wait until DHCP for the primary NIC has finished -Before=network.target - -[Service] -Type=oneshot -ExecStart=/opt/openslx/scripts/systemd-wait_primary_dhcp diff --git a/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_primary_dhcp b/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_primary_dhcp deleted file mode 100755 index 3e452549..00000000 --- a/core/modules/slx-network-configs-targets/data/opt/openslx/scripts/systemd-wait_primary_dhcp +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/ash - -flag="/run/network/primary-dhcp.flag" -readonly flag -w=0 - -# Wait a maximum of 10 seconds for the flag file -while ! [ -e "$flag" ] && [ "$w" -lt 10 ]; do - let w++ - sleep 1 -done - -# Then touch it anyways, this will prevent the DHCP -# trigger script from changing the hostname later on -mkdir -p /run/network -touch "$flag" - -exit 0 |