#!/bin/sh # # Starting x11 case "$1" in start) . /etc/init.d/rc.functions . /etc/profile echo "Starting xorg" # Disable Prompt on VDR Console sed "s/^\(tty2::\)/#\1/" -i /etc/inittab init -q setterm -cursor off -blank 0 -powerdown 0 > /dev/tty2 startx >>/var/log/sysinit 2>&1 & check_status ;; stop) . /etc/init.d/rc.functions echo "Stoping xorg" killall X check_status ;; restart) $0 stop && $0 start ;; init) start=1 ;; *) echo "Usage $0 {start | stop | restart}" >&2 exit 1 esac