ryd 1d73e080ac Adding XOrg init skript.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11495 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-15 22:01:28 +00:00

24 lines
331 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org
SSD=start-stop-daemon
PIDF=/var/run/xorg.pid
PROG=/usr/bin/startx
ARGS=
START=90
start() {
. /etc/profile
mkdir -p /var/run/xorg
$SSD -S -p $PIDF -q -x $PROG -- $ARGS
}
stop() {
killall X
}
status() {
ps | grep -q "^ *$(cat $PIDF 2>/dev/null) *.*$PROG"
}