summaryrefslogtreecommitdiff
path: root/repo/system/openrc/machine-id.initd
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/system/openrc/machine-id.initd
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/system/openrc/machine-id.initd')
-rw-r--r--repo/system/openrc/machine-id.initd17
1 files changed, 0 insertions, 17 deletions
diff --git a/repo/system/openrc/machine-id.initd b/repo/system/openrc/machine-id.initd
deleted file mode 100644
index bdd0698..0000000
--- a/repo/system/openrc/machine-id.initd
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/sbin/openrc-run
-
-description="Generate machine-id if needed"
-
-depend() {
- need root dev
-}
-
-start() {
- if [ -s /etc/machine-id ] ; then
- return 0
- fi
- ebegin "Generating machine-id"
- dd if=/dev/urandom status=none bs=16 count=1 \
- | md5sum | cut -d' ' -f1 > /etc/machine-id
- eend $?
-}