From 47e87e1b75dfd5286a7e87cbfee25db3d9c78f8a Mon Sep 17 00:00:00 2001 From: "Fritz D. Ansel" Date: Sun, 15 Aug 2021 17:05:56 +0200 Subject: [PATCH] ksmbd: use hostname only as name even if a fqdn (with domain) is set by user Signed-off-by: Fritz D. Ansel --- net/ksmbd-tools/Makefile | 2 +- net/ksmbd-tools/files/ksmbd.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ksmbd-tools/Makefile b/net/ksmbd-tools/Makefile index 04867f7b5..a29999542 100644 --- a/net/ksmbd-tools/Makefile +++ b/net/ksmbd-tools/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ksmbd-tools PKG_VERSION:=3.4.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/cifsd-team/ksmbd-tools/tar.gz/$(PKG_VERSION)? diff --git a/net/ksmbd-tools/files/ksmbd.init b/net/ksmbd-tools/files/ksmbd.init index 194d3f9b6..2c296b10b 100644 --- a/net/ksmbd-tools/files/ksmbd.init +++ b/net/ksmbd-tools/files/ksmbd.init @@ -28,7 +28,7 @@ smb_header() ) # we dont use netbios anymore as default and wsd/avahi is dns based - hostname="$(cat /proc/sys/kernel/hostname | tr -d '{};%?=#\n')" + hostname="$(sed 's/\..*//' /proc/sys/kernel/hostname | tr -d '{};%?=#\n')" config_get_sane workgroup "$1" workgroup "WORKGROUP" config_get_sane description "$1" description "Ksmbd on OpenWrt"