2008-01-30 15:36:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export USER=root
|
|
|
|
export HOME=/home/root
|
|
|
|
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
|
|
|
|
export DISPLAY=:1
|
|
|
|
|
|
|
|
unset DBUS_SESSION_BUS_ADDRESS
|
|
|
|
|
|
|
|
SERVICES=dbus-1
|
|
|
|
|
|
|
|
for S in $SERVICES; do
|
|
|
|
fakeroot /etc/init.d/$S start
|
|
|
|
done
|
|
|
|
|
|
|
|
/etc/X11/Xsession &
|
|
|
|
|
|
|
|
bash -l
|
|
|
|
|
2008-01-30 16:18:13 +00:00
|
|
|
# The --user option in the dbus stop script breaks under chroot
|
|
|
|
/sbin/start-stop-daemon --stop --pidfile /var/run/dbus/pid
|
|
|
|
|
2008-01-30 15:36:14 +00:00
|
|
|
for S in $SERVICES; do
|
|
|
|
fakeroot /etc/init.d/$S stop
|
|
|
|
done
|