From 4a479d4118538516314dba78038a950d57c34ecd Mon Sep 17 00:00:00 2001 From: "Fritz D. Ansel" Date: Thu, 12 Aug 2021 06:56:43 +0200 Subject: [PATCH] wsdd2: dont use fqdn workgroups use the name of the host without domain Signed-off-by: Fritz D. Ansel (cherry picked from commit 3953ff956da6d9d0f335ddba3fc347bfef4fabb2) --- net/wsdd2/files/wsdd2.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wsdd2/files/wsdd2.init b/net/wsdd2/files/wsdd2.init index 8ed5cf4d4b..b281ed8d8c 100644 --- a/net/wsdd2/files/wsdd2.init +++ b/net/wsdd2/files/wsdd2.init @@ -5,7 +5,7 @@ USE_PROCD=1 SMB_CONF="" BIND_IF_PARM="" -NB_PARM="$(cat /proc/sys/kernel/hostname)" +NB_PARM="$(sed 's/\..*//' /proc/sys/kernel/hostname)" WG_PARM="WORKGROUP" BI_PARM="" -- 2.30.2