summarylogtreecommitdiffstats
path: root/random_machine_id.openrc
blob: 17f17bfe8a576e98ae0c810255a649e951e1fb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/openrc-run

description="Re-generates '/etc/machine-id' and '/var/lib/dbus/machine-id' with a new random value."

depend() {
  before dbus
  provide machine-id
}

start() {
  /usr/bin/random_machine_id
}