#!/bin/bash if [ -f "/root/machine-id" ]; then echo "File exists." else cp /proc/sys/kernel/random/uuid /root/ mv /root/uuid /root/machine-id echo "not" fi cp /root/machine-id /tmp/dbus/