wok-4.x rev 1130
dbus: generate /var/lib/dbus/machine-id (thanks mimas)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 23 10:43:15 2008 +0000 (2008-07-23) |
parents | 784c95ed7cd7 |
children | 5ac3ec1bf7b4 |
files | dbus/stuff/etc/init.d/dbus |
line diff
1.1 --- a/dbus/stuff/etc/init.d/dbus Tue Jul 22 22:40:10 2008 +0000 1.2 +++ b/dbus/stuff/etc/init.d/dbus Wed Jul 23 10:43:15 2008 +0000 1.3 @@ -11,6 +11,11 @@ 1.4 DAEMON=/usr/bin/dbus-daemon 1.5 OPTIONS=$DBUS_OPTIONS 1.6 PIDFILE=/var/run/dbus/pid 1.7 +MACHINE_ID=/var/lib/dbus/machine-id 1.8 + 1.9 +if [ ! -f $MACHINE_ID ] ; then 1.10 + dbus-uuidgen > $MACHINE_ID 1.11 +fi 1.12 1.13 case "$1" in 1.14 start)