windvn/input/hostname/modscript

2 lines
79 B
Plaintext
Raw Normal View History

2022-05-23 04:30:20 +00:00
#!/usr/bin/env bash
echo $(head -c4 </dev/urandom|xxd -p -u) >"$1/etc/hostname"