summaryrefslogtreecommitdiffstats
path: root/abs/extra/sapphire/sapphire.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-04-22 18:11:22 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-04-22 18:11:22 (GMT)
commit28c31eb0c7c8f330cf0add4731b0d4e0d48b28de (patch)
treea73eac26848c073741810d3f019f714325b4560e /abs/extra/sapphire/sapphire.install
parent92076b9f4811900b43b6f177496d5bfd447ebab9 (diff)
parent3ca705e54de65bc4c8cb852b71a73b0c156a6a5d (diff)
downloadlinhes_pkgbuild-28c31eb0c7c8f330cf0add4731b0d4e0d48b28de.zip
linhes_pkgbuild-28c31eb0c7c8f330cf0add4731b0d4e0d48b28de.tar.gz
linhes_pkgbuild-28c31eb0c7c8f330cf0add4731b0d4e0d48b28de.tar.bz2
Merge branch 'testing' of git@linhes.org:linhes_pkgbuild into testing
Diffstat (limited to 'abs/extra/sapphire/sapphire.install')
-rw-r--r--abs/extra/sapphire/sapphire.install26
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/extra/sapphire/sapphire.install b/abs/extra/sapphire/sapphire.install
new file mode 100644
index 0000000..18150eb
--- /dev/null
+++ b/abs/extra/sapphire/sapphire.install
@@ -0,0 +1,26 @@
+post_install() {
+ echo ">>> Removing duplicate compressed kernel modules..."
+ for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.gz ]]; then rm "$file.gz"; fi; done
+ echo ">>> Running depmod..."
+ depmod
+ rmmod hid_topseed
+ modprobe sapphire
+ echo "If you wish to make changes to key mapping, read the docs in /usr/share/doc/sapphire."
+ echo "sapphire_keymap.sh is already installed in /usr/bin"
+}
+
+post_upgrade() {
+ echo ">>> Removing duplicate compressed kernel modules..."
+ for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.gz ]]; then rm "$file.gz"; fi; done
+ echo ">>> Running depmod..."
+ depmod
+ rmmod sapphire
+ modprobe sapphire
+ echo "If you wish to make changes to key mapping, read the docs in /usr/share/doc/sapphire."
+ echo "sapphire_keymap.sh is already installed in /usr/bin"
+}
+
+post_remove() {
+ depmod
+ rmmod sapphire
+}