diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
commit | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch) | |
tree | 4495d23e7b54ab5700e3839081e797c1eafe0db9 /setup/FreeBSD/pkg-postinstall | |
download | oss4-1058def8e7827e56ce4a70afb4aeacb5dc44148f.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'setup/FreeBSD/pkg-postinstall')
-rw-r--r-- | setup/FreeBSD/pkg-postinstall | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/setup/FreeBSD/pkg-postinstall b/setup/FreeBSD/pkg-postinstall new file mode 100644 index 0000000..de2c03a --- /dev/null +++ b/setup/FreeBSD/pkg-postinstall @@ -0,0 +1,18 @@ +#!/bin/sh +if test -f /etc/oss.conf +then + . /etc/oss.conf +else + OSSLIBDIR=/usr/lib/oss +fi + +cd $OSSLIBDIR/build +echo "Build Open Sound System for FreeBSD-`uname -m` `uname -r`" +sh install.sh + +chmod 744 /etc/rc.d/oss + +echo "Starting Open Sound System" +rm -f /dev/dsp; ln -s /dev/dsp0 /dev/dsp +/usr/sbin/soundoff > /dev/null 2>&1 +/usr/sbin/soundon |