chore: better readibility

This commit is contained in:
Michele Cereda
2024-02-15 20:56:23 +01:00
parent 8aa1cba088
commit 42cd26b37c

View File

@@ -109,9 +109,11 @@ scutil --get 'LocalHostName'
# Get the host's bonjour name.
scutil --set 'LocalHostName' 'newLocalHostName'
scutil --set 'LocalHostName' \
"$(defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName)"
# Get the host's netbios name.
defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName
defaults read '/Library/Preferences/SystemConfiguration/com.apple.smb.server' 'NetBIOSName'
/usr/libexec/PlistBuddy -c "Print :NetBIOSName" \
'/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist'