#!/bin/sh # # Starting x11 case "$1" in start) . /etc/init.d/rc.functions . /etc/profile echo "Starting xorg" # Disable Prompt on Xorg Console sed "s/^\(tty$XORG_CONSOLE::\)/#\1/" -i /etc/inittab init -q setterm -cursor off -blank 0 -powerdown 0 >/dev/tty$XORG_CONSOLE export init= export DIALOG_OUT=/dev/stdout runx >>/var/log/sysinit 2>&1 & check_status ;; stop) . /etc/init.d/rc.functions echo "Stoping xorg" killall -q poswindows runx -k check_status ;; restart) $0 stop $0 start ;; resume) . /etc/init.d/rc.functions echo "Resuming xorg" chvt $XORG_CONSOLE check_status ;; init) start=1 resume=1 priority=5 before=alsa ;; *) echo "Usage $0 {start | stop | restart}" >&2 exit 1 esac