From: Fritz D. Ansel Date: Thu, 12 Aug 2021 04:56:43 +0000 (+0200) Subject: wsdd2: dont use fqdn X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4a479d4118538516314dba78038a950d57c34ecd;p=feed%2Fpackages.git wsdd2: dont use fqdn workgroups use the name of the host without domain Signed-off-by: Fritz D. Ansel (cherry picked from commit 3953ff956da6d9d0f335ddba3fc347bfef4fabb2) --- 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=""