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 }