summaryrefslogtreecommitdiff
path: root/package/lxdm
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-26 12:50:39 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-26 12:50:39 +0200
commite0cff236a7b5f42dd5f9ba337841d7f3a4f15bb3 (patch)
treea745b0e9c925e57c735dce2573460bd5d6d819f8 /package/lxdm
parenta8c14536161a7f62f06beb5928acfd78691bef78 (diff)
parenta314aacee222450e5e8d27f38bf49abe38afb10b (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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