annotate scripts/dbus/dbus-launch.sh @ 118:12cb931dbea0

docker (base): fixed bad escaping in add_host script, resulting in domain not put in /etc/hosts
author Goffi <goffi@goffi.org>
date Tue, 08 Mar 2016 17:54:11 +0100
parents 703a394b9780
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
1 #!/bin/sh
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
2
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
3 DBUS_PATH="/tmp/.dbus.`whoami`"
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
4
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
5 if [ ! -e $DBUS_PATH ]; then
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
6 dbus-launch --sh-syntax > $DBUS_PATH
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
7 chmod 400 $DBUS_PATH
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
8 fi
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
9
703a394b9780 script: dbus-launch script
Goffi <goffi@goffi.org>
parents:
diff changeset
10 cat $DBUS_PATH