Skip to content

Commit

Permalink
Merge branch '28-remove-0s-from-mirte-xxxxxx' of https://github.com/A…
Browse files Browse the repository at this point in the history
…rendJan/mirte-install-scripts into 30-ssh-host-key-files-empty
  • Loading branch information
ArendJan committed Oct 31, 2023
2 parents b72ff3f + 6c8c95d commit 05c59f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ $MIRTE_SRC_DIR/mirte-install-scripts/usb_ethernet.sh
# be generated on first boot (so not when generating
# the image in network_setup.sh)
if [ ! -f /etc/ssid ] || [[ $(cat /etc/hostname) == "Mirte-XXXXXX" ]]; then
UNIQUE_ID=$(openssl rand -hex 3)
UNIQUE_ID=$(tr -cd "1-9A-F" </dev/urandom | head -c 6)
MIRTE_SSID=Mirte-$(echo ${UNIQUE_ID^^})
sudo bash -c 'echo '$MIRTE_SSID' > /etc/hostname'
sudo ln -s /etc/hostname /etc/ssid
Expand Down

0 comments on commit 05c59f4

Please sign in to comment.