#!/bin/bash

set -eu

HOSTNAME=$(setman-restore "deviceIds" "hostname")
DEVICELABEL=$(setman-restore "deviceIds" "deviceLabel")
hostnamectl hostname --static "${HOSTNAME}"
hostnamectl hostname --pretty "${DEVICELABEL}"
