~ubuntu-branches/debian/squeeze/oss-compat/squeeze

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2006-09-30 18:47:12 UTC
  • Revision ID: james.westby@ubuntu.com-20060930184712-5wm47vfpq96iyj5q
Tags: 0.0.4
Don't abort postinst if modprobe fails.  (Closes: #387379)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
case "$1" in
 
5
  configure)
 
6
    case "`uname -s`" in
 
7
      Linux)
 
8
        ln -sf /lib/oss-compat/linux /etc/modprobe.d/oss-compat
 
9
        if lsmod | grep -q "^snd " ; then
 
10
          modprobe snd-seq-oss || true
 
11
          modprobe snd-mixer-oss || true
 
12
          modprobe snd-pcm-oss || true
 
13
        fi
 
14
      ;;
 
15
    esac
 
16
  ;;
 
17
  abort-upgrade|abort-remove|abort-deconfigure)
 
18
  ;;
 
19
  *)
 
20
    echo "postinst called with unknown argument \`$1'" >&2
 
21
    exit 1
 
22
  ;;
 
23
esac
 
24
 
 
25
#DEBHELPER#
 
26
 
 
27
exit 0