~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to setup/Linux/installoss.sh

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if test "$USER " != "root "
 
4
then
 
5
  echo "You must be super-user or logged in as root to install OSS"
 
6
  exit 1
 
7
fi
 
8
 
 
9
if test "$1 " != " "
 
10
then
 
11
  OSSLIBDIR="$1"
 
12
else
 
13
  OSSLIBDIR="/usr/lib/oss"
 
14
fi
 
15
 
 
16
echo "Installing Open Sound System `cat "./$OSSLIBDIR/version.dat"`...."
 
17
echo "Copying files from ./etc and ./usr into /..."
 
18
tar -cpf - etc usr |(cd /; tar -xpf -)
 
19
echo "Running /usr/lib/oss/build/install script...."
 
20
if ! sh "/$OSSLIBDIR/build/install.sh"
 
21
then
 
22
  echo
 
23
  echo "ERROR: install.sh script failed"
 
24
  exit 0
 
25
fi
 
26
echo "OSS installation complete..."
 
27
echo
 
28
echo "Run /usr/sbin/soundon to start the drivers"
 
29
echo "Run /usr/bin/osstest to test the audio"
 
30
echo "Run /usr/bin/ossinfo to display status"