2008-06-15 22:01:28 +00:00
|
|
|
#!/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
|
2008-08-25 05:18:37 +00:00
|
|
|
$SSD -S -p $PIDF -q -b -x $PROG -- $ARGS
|
2008-06-15 22:01:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
killall X
|
|
|
|
}
|
|
|
|
|
|
|
|
status() {
|
|
|
|
ps | grep -q "^ *$(cat $PIDF 2>/dev/null) *.*$PROG"
|
|
|
|
}
|
|
|
|
|