slitaz-boot-scripts rev 365

Start Dbus daemon befor X = fix a part of automounting issue and Skype dbus errors
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 05 18:58:33 2014 +0200 (2014-05-05)
parents 27c455a9f7ac
children 77ba5ad22d40
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Fri May 02 22:12:22 2014 +0200
     1.2 +++ b/etc/init.d/rcS	Mon May 05 18:58:33 2014 +0200
     1.3 @@ -178,15 +178,18 @@
     1.4  	/etc/init.d/$script
     1.5  done
     1.6  
     1.7 -# Start X session
     1.8 -if [ "$SCREEN" != "text" ] && [ "$LOGIN_MANAGER" ] && [ -x "/etc/init.d/$LOGIN_MANAGER" ]; then
     1.9 +# Start X session. Dbus must be started before Xorg and other daemons. 
    1.10 +# We started it here because X is run before RUN_DAEMONS. Sleep, in 
    1.11 +# some in live mode we boot too fast and X can't initialize.
    1.12 +if [ "$SCREEN" != "text" ] && [ "$LOGIN_MANAGER" ] && \
    1.13 +	[ -x "/etc/init.d/$LOGIN_MANAGER" ]; then
    1.14  	colorize 36 "Starting X environment..."
    1.15  	# We need Xorg 40-Keyboard.conf and SliTaz applications.conf
    1.16  	if [ ! -s "/etc/X11/xorg.conf.d/40-Keyboard.conf" ]; then
    1.17  		echo "Configuring Xorg server..." && HOME="/root" 
    1.18  		tazx init
    1.19  	fi
    1.20 -	#/etc/init.d/dbus start
    1.21 +	/etc/init.d/dbus start
    1.22  	(sleep 2; /etc/init.d/${LOGIN_MANAGER} start >/dev/null) &
    1.23  fi
    1.24