mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-06 14:27:43 +01:00
00e090edc5
This for better management and in preperation for easy BAR update
12 lines
286 B
Desktop File
12 lines
286 B
Desktop File
[Unit]
|
|
Description=Set hostname to MycroftOS-[MAC]
|
|
Before=systemd-networkd.service
|
|
Before=avahi-daemon.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/sh -c "hostnamectl set-hostname MycroftOS-`sed 's/://g' /sys/class/net/eth0/address | tail -c 7`"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|