]> git.pld-linux.org Git - packages/dbus.git/blob - dbus-xinitrc.sh
- upstart: upstart_controlled early
[packages/dbus.git] / dbus-xinitrc.sh
1 #! /bin/sh
2
3 # Get configuration
4 . /etc/sysconfig/messagebus
5
6 # Taken 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_X_SESSION}"; 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
29     fi
30 fi
This page took 0.060851 seconds and 3 git commands to generate.