Skip to content

Commit

Permalink
samba4: use hostname only as name
Browse files Browse the repository at this point in the history
even if a fqdn (with domain) is set by user

Signed-off-by: Fritz D. Ansel <[email protected]>
  • Loading branch information
selanf authored and Beginner-Go committed Aug 15, 2021
1 parent 4232268 commit 88a9e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/samba4/files/samba.init
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 88a9e26

Please sign in to comment.