summaryrefslogtreecommitdiff
path: root/packages/opie-cardapplet/opie-cardapplet.inc
diff options
context:
space:
mode:
authorPaul Eggleton <bluelightning@bluelightning.org>2008-08-30 15:52:24 +0000
committerPaul Eggleton <bluelightning@bluelightning.org>2008-08-30 15:52:24 +0000
commit3c55eb98ff6b0977c9d8733de49e1e3eaed2a52a (patch)
tree0114900ba04978760b08cb91260491b37f874374 /packages/opie-cardapplet/opie-cardapplet.inc
parent53111d3366837cea191dad7862beb9351e2a763a (diff)
opie-cardapplet: add detection of card insert/remove and fix postinst
* Add udev scripts/rules to notify applet of card insertion/removal * Fix path to qcop used in postinst
Diffstat (limited to 'packages/opie-cardapplet/opie-cardapplet.inc')
-rw-r--r--packages/opie-cardapplet/opie-cardapplet.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/opie-cardapplet/opie-cardapplet.inc b/packages/opie-cardapplet/opie-cardapplet.inc
index 848bfaa63a..a96f972423 100644
--- a/packages/opie-cardapplet/opie-cardapplet.inc
+++ b/packages/opie-cardapplet/opie-cardapplet.inc
@@ -13,22 +13,26 @@ inherit opie
pkg_postinst() {
#!/bin/sh
if pidof -s qpe >/dev/null; then
- /opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()"
+ /usr/bin/qcop QPE/TaskBar "reloadApplets()"
fi
if [ -n "$D" ]; then false; fi
}
pkg_postrm() {
#!/bin/sh
-/opt/QtPalmtop/bin/qcop QPE/TaskBar "reloadApplets()"
+/usr/bin/qcop QPE/TaskBar "reloadApplets()"
if [ -n "$D" ]; then false; fi
}
-# FILES plugins/applets/libcardapplet.so* pics/cardmon/*.png sounds/cardmon/*.wav
+# FILES plugins/applets/libcardapplet.so* pics/cardmon/*.png sounds/cardmon/*.wav etc/opie-pcmcia.*
do_install() {
install -d ${D}${palmtopdir}/pics/cardmon/
install -d ${D}${palmtopdir}/sounds/cardmon/
+ install -d ${D}${sysconfdir}/udev/rules.d/
+ install -d ${D}${sysconfdir}/udev/scripts/
install -m 0644 ${WORKDIR}/pics/cardmon/*.png ${D}${palmtopdir}/pics/cardmon/
install -m 0644 ${WORKDIR}/sounds/cardmon/*.wav ${D}${palmtopdir}/sounds/cardmon/
+ install -m 0644 ${WORKDIR}/etc/opie-pcmcia.rules ${D}${sysconfdir}/udev/rules.d/opie-pcmcia.rules
+ install -m 0755 ${WORKDIR}/etc/opie-pcmcia.sh ${D}${sysconfdir}/udev/scripts/opie-pcmcia.sh
}