diff options
author | Cecil <knoppmyth@gmail.com> | 2012-04-22 10:04:39 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2012-04-22 10:04:39 (GMT) |
commit | 3ca705e54de65bc4c8cb852b71a73b0c156a6a5d (patch) | |
tree | 62a9b769d96326878b2494207cd48b71395bc840 /abs/extra/sapphire/sapphire.install | |
parent | e9a335dd93c20b780295d0d6076beddfd55a16c5 (diff) | |
download | linhes_pkgbuild-3ca705e54de65bc4c8cb852b71a73b0c156a6a5d.zip linhes_pkgbuild-3ca705e54de65bc4c8cb852b71a73b0c156a6a5d.tar.gz linhes_pkgbuild-3ca705e54de65bc4c8cb852b71a73b0c156a6a5d.tar.bz2 |
sapphire:Kernel module version 3.2 for sapphire remote. Initial inclusion.
Diffstat (limited to 'abs/extra/sapphire/sapphire.install')
-rw-r--r-- | abs/extra/sapphire/sapphire.install | 26 |
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 +} |