ports/main/nnd-s6-services/rc/machineid/up

16 lines
269 B
Plaintext
Raw Normal View History

2023-09-14 11:25:55 +00:00
#!/bin/execlineb -P
s6-envdir -i /etc/s6/env/path
emptyenv -p
ifelse -Xn { [ -r /etc/machine-id ] } {
2023-09-14 11:25:55 +00:00
redirfd -w 1 /etc/machine-id
foreground {
pipeline {
pipeline {
cat /dev/urandom
} tr -dc abcdef[:digit:]
} head -c 32
}
printf "\n"
} true