summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-08-14 10:40:08 +0200
committerJonathan Bauer2020-08-14 10:40:08 +0200
commitc0326529e3fe1a19f96190b0cb0eb2144af393c6 (patch)
tree8540be0000456e537cd6ac34a6e213e506891942
parent[systemd-networkd-ext] remove -t from busybox timeout (diff)
downloadsystemd-init-c0326529e3fe1a19f96190b0cb0eb2144af393c6.tar.gz
systemd-init-c0326529e3fe1a19f96190b0cb0eb2144af393c6.tar.xz
systemd-init-c0326529e3fe1a19f96190b0cb0eb2144af393c6.zip
[slx-network] use 'noname-' prefix for hostname fallback
-rwxr-xr-xmodules.d/slx-network/scripts/udhcpc-trigger.stage32
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/slx-network/scripts/udhcpc-trigger.stage3 b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
index 25d036c8..d806d147 100755
--- a/modules.d/slx-network/scripts/udhcpc-trigger.stage3
+++ b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
@@ -132,7 +132,7 @@ fi
if [ -z "$hostname" ]; then
# no fallback hostname from DNS, use IP address
- hostname="${ip//./-}"
+ hostname="noname-${ip//./-}"
fi
if [ -n "$hostname" ]; then