File: postinst

package info (click to toggle)
oss-compat 0.0.4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 44 kB
  • sloc: sh: 22; makefile: 1
file content (27 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e

case "$1" in
  configure)
    case "`uname -s`" in
      Linux)
        ln -sf /lib/oss-compat/linux /etc/modprobe.d/oss-compat
        if lsmod | grep -q "^snd " ; then
          modprobe snd-seq-oss || true
          modprobe snd-mixer-oss || true
          modprobe snd-pcm-oss || true
        fi
      ;;
    esac
  ;;
  abort-upgrade|abort-remove|abort-deconfigure)
  ;;
  *)
    echo "postinst called with unknown argument \`$1'" >&2
    exit 1
  ;;
esac

#DEBHELPER#

exit 0