define Package/xorg-server-essentials/install
$(INSTALL_DIR) $(1)/root
$(CP) files/xinitrc $(1)/root/.xinitrc
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) files/xorg.init $(1)/etc/init.d/xorg
endef
$(eval $(call BuildPackage,xorg-server-essentials))
--- /dev/null
+#!/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"
+}
+