#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
gid=$(get_next_gid)
add_group messagebus $gid
add_user messagebus $(get_next_uid) $gid /var/run/dbus
add_rcconf dbus dbus NO
echo Generating UUID
if [ -z $IPKG_INSTROOT ];then 
	mkdir /lib/dbus /var/lib 
	ln -sf /lib/dbus /var/lib/dbus
	dbus-uuidgen --ensure
fi
