#!/bin/sh

[ -d /var/lib/dbus ] || mkdir -p /var/lib/dbus
[ -f /var/lib/dbus/machine-id ] || dbus-uuidgen --ensure=/var/lib/dbus/machine-id

[ -d /usr/local/etc/dbus-1/system.d ] || mkdir -p /usr/local/etc/dbus-1/system.d
[ -d /usr/local/etc/dbus-1/session.d ] || mkdir -p /usr/local/etc/dbus-1/session.d

[ -f /usr/local/etc/dbus-1/session.conf ] || cp -p /usr/local/share/dbus/files/session.conf /usr/local/etc/dbus-1
[ -f /usr/local/etc/dbus-1/system.conf ] || cp -p /usr/local/share/dbus/files/system.conf /usr/local/etc/dbus-1
