updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / hsfmodem / hsfmodem.install
blobde966b7ec0f33ffc27148dba751df6a009c0a853
2 post_install() {
3   cat << EOF
4 ==>
5 ==> Please read /usr/share/licenses/hsfmodem-utils/license.txt for the license of this package.
6 EOF
8   post_upgrade
11 post_upgrade() {
12   cat << EOF
13 ==>
14 ==> Updating module dependencies...
15 ==>
16 EOF
18   depmod -a
21 post_remove() {
23   OSKERNVERS=`uname -r`
25   # Restore original modules
26   for mod in snd-hda-intel snd-hda-codec; do
27     if [ -e "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko.REPLACEDBYhsfmodem" -a \
28          ! -e "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko" ]; then
30       mv -f "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko.REPLACEDBYhsfmodem" \
31             "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko"
32     fi
33   done
35   post_upgrade
38 op=$1
39 shift
40 [ "$(type -t "$op")" = "function" ] && $op "$@"
42 # vim:set ts=2 sw=2 et: