projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059f622
)
samba4: use hostname only as name
author
Fritz D. Ansel
<fdansel@yandex.ru>
Mon, 2 Aug 2021 18:05:56 +0000
(20:05 +0200)
committer
Hannu Nyman
<hannu.nyman@iki.fi>
Sun, 15 Aug 2021 11:44:18 +0000
(14:44 +0300)
even if a fqdn (with domain) is set by user
Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
net/samba4/files/samba.init
patch
|
blob
|
history
diff --git
a/net/samba4/files/samba.init
b/net/samba4/files/samba.init
index 7cb2f66e7538074ec3ff047c9e3460fa853d3530..b849a1cd370d182f93f4ad1656642bbcc8410deb 100644
(file)
--- a/
net/samba4/files/samba.init
+++ b/
net/samba4/files/samba.init
@@
-26,7
+26,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 "Samba on OpenWrt"