mirror of
https://github.com/openwrt/packages.git
synced 2025-12-27 08:15:00 +04:00
ksmbd: use hostname only as name
even if a fqdn (with domain) is set by user
Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
(cherry picked from commit 47e87e1b75)
This commit is contained in:
committed by
Rosen Penev
parent
8677e7efa9
commit
6657d5f61a
@@ -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)?
|
||||
|
||||
@@ -27,7 +27,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"
|
||||
|
||||
Reference in New Issue
Block a user