psplash: add config file to pass parameters to psplash
authorJeremy Lainé <jeremy.laine@m4x.org>
Tue, 23 Dec 2008 12:35:35 +0000 (13:35 +0100)
committerJeremy Lainé <jeremy.laine@m4x.org>
Tue, 23 Dec 2008 12:35:35 +0000 (13:35 +0100)
packages/psplash/files/boc01/psplash-default [new file with mode: 0644]
packages/psplash/files/psplash-default [new file with mode: 0644]
packages/psplash/files/psplash-init
packages/psplash/psplash_svn.bb

diff --git a/packages/psplash/files/boc01/psplash-default b/packages/psplash/files/boc01/psplash-default
new file mode 100644 (file)
index 0000000..70677b1
--- /dev/null
@@ -0,0 +1,2 @@
+# Parameters to pass to psplash
+PARAMS="-n"
diff --git a/packages/psplash/files/psplash-default b/packages/psplash/files/psplash-default
new file mode 100644 (file)
index 0000000..a5a53d7
--- /dev/null
@@ -0,0 +1,2 @@
+# Parameters to pass to psplash
+PARAMS=""
index 7f7eb36..7796a79 100644 (file)
@@ -10,19 +10,19 @@ for x in $(cat /proc/cmdline); do
 done
 
 . /etc/init.d/functions
+. /etc/default/psplash
 
-psplash_args=''
 case `machine_id` in
     "hp_ipaq_h3100"|"hp_ipaq_h3800") 
-       pspash_args='-a 90' ;;
+       PARAMS='-a 90' ;;
     "hp_ipaq_3600"|"hp_ipaq_3700"|"hp_ipaq_h3900"|"htc_universal"|*collie|*poodle|*akita|*spitz|*borzoi)
-       psplash_args='-a 270' ;;
+       PARAMS='-a 270' ;;
 esac
 
 export TMPDIR=/mnt/.psplash
 mount tmpfs -t tmpfs $TMPDIR -o,size=40k
 
-/usr/bin/psplash $psplash_args &
+/usr/bin/psplash $PARAMS &
 
 # Timetrap against hanging with splash hiding console messages.
 (sleep 120; psplash-write "QUIT") &
index 0fd3864..36c8b39 100644 (file)
@@ -3,7 +3,7 @@ HOMEPAGE = "http://projects.o-hand.com/psplash"
 SECTION = "base"
 LICENSE = "GPL"
 PV = "0.0+svnr${SRCREV}"
-PR = "r13"
+PR = "r14"
 RDEPENDS = "initscripts"
 
 # You can create your own pslash-hand-img.h by doing
@@ -15,6 +15,7 @@ RDEPENDS = "initscripts"
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
           file://psplash-hand-img.h \
           file://psplash-bar-img.h \
+          file://psplash-default \
           file://psplash-init"
 S = "${WORKDIR}/psplash"
 
@@ -36,6 +37,8 @@ do_configure_append() {
 
 do_install_prepend() {
        install -d ${D}/mnt/.psplash/
+       install -d ${D}${sysconfdir}/default/
+       install -m 0644 ${WORKDIR}/psplash-default ${D}${sysconfdir}/default/psplash
        install -d ${D}${sysconfdir}/init.d/
        install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash
 }