2020-04-06 10:25:45 +02:00
|
|
|
[Unit]
|
2020-10-06 21:23:38 +02:00
|
|
|
Description=Set hostname to OpenVoiceOS-[MAC]
|
2020-09-17 16:23:56 +02:00
|
|
|
Before=NetworkManager.service
|
2020-04-06 10:25:45 +02:00
|
|
|
Before=avahi-daemon.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2020-10-06 21:23:38 +02:00
|
|
|
ExecStart=/bin/sh -c "hostnamectl set-hostname OpenVoiceOS-`sed 's/://g' /sys/class/net/eth0/address | tail -c 7`"
|
2020-04-06 10:25:45 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|