Skip to content

Commit 92a6c58

Browse files
authored
Merge pull request #13 from OS2borgerPC/12-rpi-kompatibelt-connect-script
Lower case hostname with RPI-compatibility
2 parents 0aa2388 + cc7f470 commit 92a6c58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/register_new_os2borgerpc_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ while true; do
4848

4949
# Idea: Allow uppercase in the computername due to popular demand,
5050
# but lowercase it so it's a valid hostname which is case insensitive
51-
NEW_HOSTNAME=$(echo "$NEW_COMPUTER_NAME" | tr '[:upper:]' '[:lower:]')
51+
NEW_HOSTNAME=${NEW_COMPUTER_NAME,,}
5252

5353
echo "$NEW_HOSTNAME" > /etc/hostname
5454
set_os2borgerpc_config hostname "$NEW_HOSTNAME"

0 commit comments

Comments
 (0)