Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- oe-core/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm 2012-08-10 18:18:45.610022519 +0100
- +++ meta-oe/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm 2011-11-09 10:23:52.916190208 +0000
- @@ -1,20 +1,8 @@
- #!/bin/sh
- -#
- -### BEGIN INIT INFO
- -# Provides: xserver
- -# Required-Start: $local_fs $remote_fs dbus
- -# Required-Stop: $local_fs $remote_fs
- -# Default-Start: 2 3 4 5
- -# Default-Stop: 0 1 6
- -### END INIT INFO
- -killproc() { # kill the named process(es)
- - pid=`/bin/pidof $1`
- - [ "$pid" != "" ] && kill $pid
- -}
- +. /etc/init.d/functions
- -read CMDLINE < /proc/cmdline
- -for x in $CMDLINE; do
- +for x in $(cat /proc/cmdline); do
- case $x in
- x11=false)
- echo "X Server disabled"
- @@ -25,25 +13,23 @@
- case "$1" in
- start)
- + # We don't want this script to block the rest of the boot process
- + if [ "$2" != "background" ]; then
- + $0 $1 background &
- + else
- + # work around from /etc/X11/Xinit
- + export USER=root
- + export HOME=/home/root
- + if [ ! -d $HOME ] && [ -d /root ]; then
- + HOME=/root
- + fi
- +
- . /etc/profile
- - username=root
- +
- echo "Starting Xserver"
- - if [ -f /etc/X11/Xusername ]; then
- - username=`cat /etc/X11/Xusername`
- - # setting for rootless X
- - chmod o+w /var/log
- - chmod g+r /dev/tty[0-3]
- - chmod o+rw /dev/input/*
- - # hidraw device is probably needed
- - if [ -e /dev/hidraw0 ]; then
- - chmod o+rw /dev/hidraw*
- - fi
- - fi
- - # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]
- - su -l -c '/etc/X11/Xserver&' $username
- - # Wait for the desktop to say its finished loading
- - # before loading the rest of the system
- - # dbus-wait org.matchbox_project.desktop Loaded
- + . /etc/X11/xserver-common
- + xinit /etc/X11/Xsession -- `which $XSERVER` $ARGS >/var/log/Xsession.log 2>&1
- + fi
- ;;
- stop)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement