Skip to content

Commit

Permalink
lowercase hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Nov 24, 2023
1 parent a72df7a commit 3d00649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/late.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ domain="@DOMAIN@"

if test "${hostname}" == "undefined"; then
# generate hostname from mac addresses
hostname="DEB$(cat /sys/class/net/*/address | tr -d '\n' | sha256sum | tr '[:lower:]' '[:upper:]' | head -c 5)"
hostname="deb$(cat /sys/class/net/*/address | tr -d '\n' | sha256sum | head -c 5)"
echo "${hostname}" >"${prefix}/etc/hostname"
cat <<EOF >"${prefix}/etc/hosts"
127.0.0.1 localhost
Expand Down

0 comments on commit 3d00649

Please sign in to comment.