10 lines
229 B
Desktop File
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 |