summaryrefslogtreecommitdiff
path: root/package/lxdm
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-25 11:59:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-25 11:59:24 +0200
commitadd00755dce7010c2025e1a18e57b832a960d289 (patch)
tree6d9f2f806a2863b35dac1fc52d2d626ed6db42d5 /package/lxdm
parent85a1cc9ebdd7273480ab45d8b425ae7e63d1578b (diff)
add initscript and OpenADK background
Diffstat (limited to 'package/lxdm')
-rw-r--r--package/lxdm/Makefile3
-rw-r--r--package/lxdm/files/lxdm.init28
-rw-r--r--package/lxdm/files/lxdm.postinst3
-rw-r--r--package/lxdm/files/openadk.pngbin0 -> 115297 bytes
4 files changed, 34 insertions, 0 deletions
diff --git a/package/lxdm/Makefile b/package/lxdm/Makefile
index 555194a3d..4f0036360 100644
--- a/package/lxdm/Makefile
+++ b/package/lxdm/Makefile
@@ -30,5 +30,8 @@ lxdm-install:
$(INSTALL_DIR) $(IDIR_LXDM)/usr/share/lxdm/themes
$(CP) $(WRKINST)/usr/share/lxdm/themes/* \
$(IDIR_LXDM)/usr/share/lxdm/themes
+ $(INSTALL_DIR) $(IDIR_LXDM)/usr/share/backgrounds
+ $(CP) ./files/openadk.png \
+ $(IDIR_LXDM)/usr/share/backgrounds/default.png
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/lxdm/files/lxdm.init b/package/lxdm/files/lxdm.init
new file mode 100644
index 000000000..40ece255b
--- /dev/null
+++ b/package/lxdm/files/lxdm.init
@@ -0,0 +1,28 @@
+#!/bin/sh
+#PKG lxdm
+#INIT 95
+
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+autostart)
+ test x"${lxdm:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+start)
+ /usr/sbin/lxdm
+ ;;
+stop)
+ kill $(pgrep -f /usr/sbin/lxdm)
+ ;;
+restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+*)
+ echo "Usage: $0 {start | stop | restart}"
+ exit 1
+ ;;
+esac
+exit $?
diff --git a/package/lxdm/files/lxdm.postinst b/package/lxdm/files/lxdm.postinst
new file mode 100644
index 000000000..4a038c74d
--- /dev/null
+++ b/package/lxdm/files/lxdm.postinst
@@ -0,0 +1,3 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf lxdm lxdm YES
diff --git a/package/lxdm/files/openadk.png b/package/lxdm/files/openadk.png
new file mode 100644
index 000000000..70f9c3bcd
--- /dev/null
+++ b/package/lxdm/files/openadk.png
Binary files differ