| 1 | [Unit] |
| 2 | Description=determine hostname from MAC |
| 3 | #not-file-not-empty == file empty |
| 4 | # ConditionFileNotEmpty=|!/etc/hostname |
| 5 | # need interfaces configured |
| 6 | After=systemd-networkd-wait-online.service |
| 7 | Before=network.target |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | ExecStart=/usr/local/sbin/hostnamer.sh |
| 11 | [Install] |
| 12 | WantedBy=multi-user.target |