Add machineid init
This commit is contained in:
parent
89eeaf52b3
commit
6031a2dfe3
|
@ -3,7 +3,7 @@
|
||||||
. ../../APKBUILD.template
|
. ../../APKBUILD.template
|
||||||
|
|
||||||
pkgname=nnd-s6-services
|
pkgname=nnd-s6-services
|
||||||
pkgver=2.50
|
pkgver=2.51
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Base services for s6"
|
pkgdesc="Base services for s6"
|
||||||
depends="s6-rc s6-portable-utils s6-linux-utils"
|
depends="s6-rc s6-portable-utils s6-linux-utils"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
s6-envdir -i /etc/s6/env/path
|
||||||
|
emptyenv -p
|
||||||
|
|
||||||
|
if -n { [ -r /etc/machine-id ] }
|
||||||
|
redirfd -w 1 /etc/machine-id
|
||||||
|
foreground {
|
||||||
|
pipeline {
|
||||||
|
pipeline {
|
||||||
|
cat /dev/urandom
|
||||||
|
} tr -dc abcdef[:digit:]
|
||||||
|
} head -c 32
|
||||||
|
}
|
||||||
|
printf "\n"
|
Loading…
Reference in New Issue