]>
Commit | Line | Data |
---|---|---|
d085dddd | 1 | #! /bin/sh |
636e6686 | 2 | |
d085dddd | 3 | # Get configuration |
e5ccf172 | 4 | . /etc/sysconfig/messagebus |
d085dddd MK |
5 | |
6 | # Take from rc-scripts | |
7 | is_yes() | |
8 | { | |
9 | # Check value | |
10 | case "$1" in | |
11 | yes|Yes|YES|true|True|TRUE|on|On|ON|Y|y|1) | |
12 | # true returns zero | |
13 | return 0 | |
14 | ;; | |
15 | *) | |
16 | # false returns one | |
17 | return 1 | |
18 | ;; | |
19 | esac | |
20 | } | |
21 | ||
22 | if is_yes "${SESSION_BUS_PROFILE_D}"; then | |
23 | if [ -f /usr/bin/dbus-launch ]; then | |
24 | if [ -f /var/run/dbus.pid ]; then | |
25 | if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then | |
26 | eval `dbus-launch --sh-syntax --exit-with-session` | |
27 | fi | |
28 | fi | |
8e39dde6 | 29 | fi |
d085dddd | 30 | fi |