diff options
author | Paul Eggleton <bluelightning@bluelightning.org> | 2008-08-30 15:52:24 +0000 |
---|---|---|
committer | Paul Eggleton <bluelightning@bluelightning.org> | 2008-08-30 15:52:24 +0000 |
commit | 3c55eb98ff6b0977c9d8733de49e1e3eaed2a52a (patch) | |
tree | 0114900ba04978760b08cb91260491b37f874374 /packages/opie-cardapplet | |
parent | 53111d3366837cea191dad7862beb9351e2a763a (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')
-rw-r--r-- | packages/opie-cardapplet/opie-cardapplet.inc | 10 | ||||
-rw-r--r-- | packages/opie-cardapplet/opie-cardapplet_cvs.bb | 5 |
2 files changed, 11 insertions, 4 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 } diff --git a/packages/opie-cardapplet/opie-cardapplet_cvs.bb b/packages/opie-cardapplet/opie-cardapplet_cvs.bb index 0c5c645ad2..e791fe09fd 100644 --- a/packages/opie-cardapplet/opie-cardapplet_cvs.bb +++ b/packages/opie-cardapplet/opie-cardapplet_cvs.bb @@ -2,7 +2,10 @@ require ${PN}.inc PV = "${OPIE_CVS_PV}" +PR = "r2" + SRC_URI = "${HANDHELDS_CVS};module=opie/noncore/applets/cardapplet \ ${HANDHELDS_CVS};module=opie/pics \ ${HANDHELDS_CVS};module=opie/sounds \ - ${HANDHELDS_CVS};module=opie/apps" + ${HANDHELDS_CVS};module=opie/apps \ + ${HANDHELDS_CVS};module=opie/etc" |