updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / hsfmodem-dell / hsfmodem.install
blobc95c79da2a9f4e0f8db02685259d65d1e2071eaa
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
9   
10   cat << EOF
11 ==>
12 ==> Done, now reboot and run "/usr/sbin/hsfconfig" (answer "yes" to the question)
13 EOF
16 post_upgrade() {
17   cat << EOF
18 ==>
19 ==> Updating module dependencies...
20 ==>
21 EOF
23   depmod -a
24   
25   cat << EOF
26 ==> Done, now reboot and run "/usr/sbin/hsfconfig" (answer "yes" to the question)
27 EOF
30 post_remove() {
32   OSKERNVERS=`uname -r`
34   # Restore original modules
35   for mod in snd-hda-intel snd-hda-codec; do
36     if [ -e "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko.REPLACEDBYhsfmodem" -a \
37          ! -e "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko" ]; then
39       mv -f "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko.REPLACEDBYhsfmodem" \
40             "/lib/modules/${OSKERNVERS}/kernel/sound/pci/hda/${mod}.ko"
41     fi
42   done
44   post_upgrade
47 op=$1
48 shift
49 [ "$(type -t "$op")" = "function" ] && $op "$@"
51 # vim:set ts=2 sw=2 et: