From 2da78b428243bc5e4761372db601559bae865299 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:20:54 +0100 Subject: dhcp: T5948: Strip trailing dot from hostnames --- src/system/on-dhcp-event.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh index e1a9f1884..3c11105d4 100755 --- a/src/system/on-dhcp-event.sh +++ b/src/system/on-dhcp-event.sh @@ -63,7 +63,7 @@ case "$action" in client_ip=${!client_ip_var} client_mac=${!client_mac_var} - client_name=${!client_name_var} + client_name=${!client_name_var//./} client_subnet_id=${!client_subnet_id_var} if [ -z "$client_name" ]; then -- cgit v1.2.3