mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
samba4: use hostname only as name
even if a fqdn (with domain) is set by user Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
This commit is contained in:
committed by
Hannu Nyman
parent
059f622ac9
commit
6bac8c6275
@@ -26,7 +26,7 @@ smb_header() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
# we dont use netbios anymore as default and wsd/avahi is dns based
|
# 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 workgroup "$1" workgroup "WORKGROUP"
|
||||||
config_get_sane description "$1" description "Samba on OpenWrt"
|
config_get_sane description "$1" description "Samba on OpenWrt"
|
||||||
|
|||||||
Reference in New Issue
Block a user