summaryrefslogtreecommitdiffstats
path: root/abs/extra/sapphire/sapphire.install
diff options
context:
space:
mode:
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
+}