~ubuntu-branches/ubuntu/vivid/oss4/vivid

« back to all changes in this revision

Viewing changes to setup/SCO_SV/postinstall

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
. /etc/oss.conf
 
4
 
 
5
echo "Setting up Open Sound System....please wait"
 
6
 
 
7
#first remove the SCO ich driver from the system
 
8
/etc/conf/bin/idinstall -d ich > /dev/null 2>&1
 
9
 
 
10
#Remove oprhaned files left from earlier OSS installations
 
11
rm -f /dev/sequencer /dev/music
 
12
rm -f /dev/*_mixer[0-9]*
 
13
rm -f /dev/*_midi[0-9]*
 
14
rm -f /dev/*_dsp[0-9]*
 
15
rm -f /dev/dsp*
 
16
rm -f /dev/mixer*
 
17
rm -f /dev/midi*
 
18
rm -f /etc/rc3.d/S99oss
 
19
 
 
20
# Unload previous modules
 
21
for n in `ls $OSSLIBDIR/modules|grep -v osscore`
 
22
do
 
23
  modadmin -U $n > /dev/null 2>&1
 
24
done
 
25
 
 
26
modadmin -U osscore > /dev/null 2>&1
 
27
 
 
28
# Remove previous OSS startup files
 
29
rm -f /etc/rc3.d/S99oss /etc/init.d/oss
 
30
 
 
31
# (re)install osscore
 
32
 
 
33
rm -f $OSSLIBDIR/modules/*/install.log
 
34
 
 
35
cd $OSSLIBDIR/modules/osscore
 
36
 
 
37
cd $OSSLIBDIR/build && sh install.sh
 
38
 
 
39
if test ! -f $OSSLIBDIR/etc/userdefs
 
40
then
 
41
  echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
 
42
fi
 
43
 
 
44
/usr/sbin/soundon
 
45
 
 
46
echo "Adding OSS startup scripts to /etc/rc2.d and /etc/init.d"
 
47
rm -f /etc/rc2.d/S89oss /etc/init.d/oss
 
48
 
 
49
cp $OSSLIBDIR/etc/S89oss /etc/init.d/oss
 
50
chmod 744 /etc/init.d/oss
 
51
 
 
52
ln -s /etc/init.d/oss /etc/rc2.d/S89oss
 
53
echo ""
 
54
echo ""
 
55
echo ""
 
56
echo ""
 
57
echo Thank you for installing Open Sound System
 
58
echo You can run the osstest command to test audio playback in your system.
 
59
echo
 
60
echo It may be necessary to reboot the system before all devices get properly
 
61
echo detected by the system.
 
62
 
 
63
exit 0