File: installoss.sh

package info (click to toggle)
oss4 4.2-build2020-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,408 kB
  • sloc: ansic: 237,053; cpp: 18,981; sh: 4,909; pascal: 3,863; asm: 1,189; makefile: 646; php: 53; xml: 46
file content (30 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (4)
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
28
29
30
#!/bin/sh

if test "$USER " != "root "
then
  echo "You must be super-user or logged in as root to install OSS"
  exit 1
fi

if test "$1 " != " "
then
  OSSLIBDIR="$1"
else
  OSSLIBDIR="/usr/lib/oss"
fi

echo "Installing Open Sound System `cat "./$OSSLIBDIR/version.dat"`...."
echo "Copying files from ./etc and ./usr into /..."
tar -cpf - etc usr |(cd /; tar -xpf -)
echo "Running /usr/lib/oss/build/install script...."
if ! sh "/$OSSLIBDIR/build/install.sh"
then
  echo
  echo "ERROR: install.sh script failed"
  exit 0
fi
echo "OSS installation complete..."
echo
echo "Run /usr/sbin/soundon to start the drivers"
echo "Run /usr/bin/osstest to test the audio"
echo "Run /usr/bin/ossinfo to display status"