Files
2025-09-22 23:12:44 +02:00

10 lines
229 B
Desktop File

[Unit]
Description=Set random hostname
Before=systemd-logind.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'hostnamectl set-hostname "client-$(tr -dc a-z0-9 </dev/urandom | head -c6)"'
[Install]
WantedBy=multi-user.target