summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/krebs/bin/set-hostname.sh
blob: 31101a189c7d3bce9b14893923b52150499280fd (plain)
1
2
3
4
5
#!/bin/sh
hostn="elch_$(/krebs/bin/macid.sh)"
hostnamectl set-hostname "$hostn"
hostname $hostn
echo "$hostn" > /etc/hostname