diff -urNH oss-v4.0-build1016-src-gpl/EULA oss-v4.0-build1016-src-gpl-modified/EULA --- oss-v4.0-build1016-src-gpl/EULA 1970-01-01 01:00:00.000000000 +0100 +++ oss-v4.0-build1016-src-gpl-modified/EULA 2008-06-20 19:59:42.251393209 +0200 @@ -0,0 +1,25 @@ +Upstream sources are at: + http://www.opensound.com + +Authors: + 4Front Technologies ( http://www.4front-tech.com ) + +Copyright: + Copyright (C) 2006-2008 Hannu Savolainen and Dev Mazumdar. + All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. diff -urNH oss-v4.0-build1016-src-gpl/setup/Linux/postinst oss-v4.0-build1016-src-gpl-modified/setup/Linux/postinst --- oss-v4.0-build1016-src-gpl/setup/Linux/postinst 2008-06-17 07:53:29.000000000 +0200 +++ oss-v4.0-build1016-src-gpl-modified/setup/Linux/postinst 2008-06-20 19:09:17.026205985 +0200 @@ -1,8 +1,12 @@ #!/bin/sh +if [ -e /tmp/OSS_UPGRADE ]; then rm /tmp/OSS_UPGRADE; fi +if [ -e /etc/oss.conf ]; then true; else echo "OSSLIBDIR=/usr/lib/oss" > /etc/oss.conf; fi echo "Building OSS Modules for Linux-`uname -p` `uname -r`" cd /usr/lib/oss/build sh install.sh if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi +echo "Forcing re-detection of installed soundcards" +ossdetect echo "Starting Open Sound System" sync /usr/sbin/soundoff >> /dev/null 2>&1 diff -urNH oss-v4.0-build1016-src-gpl/setup/Linux/postrm oss-v4.0-build1016-src-gpl-modified/setup/Linux/postrm --- oss-v4.0-build1016-src-gpl/setup/Linux/postrm 2008-06-17 07:53:29.000000000 +0200 +++ oss-v4.0-build1016-src-gpl-modified/setup/Linux/postrm 2008-06-20 17:40:40.469766572 +0200 @@ -1,4 +1,4 @@ #!/bin/sh -rm -rf /usr/lib/oss/* +if [ -e /tmp/OSS_UPGRADE ]; then echo "Upgrading OSS - will not purge /usr/lib/oss."; else rm -rf /usr/lib/oss/*; fi rm -f /usr/lib/libflashsupport.so if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi diff -urNH oss-v4.0-build1016-src-gpl/setup/Linux/preinst oss-v4.0-build1016-src-gpl-modified/setup/Linux/preinst --- oss-v4.0-build1016-src-gpl/setup/Linux/preinst 2008-06-17 07:53:29.000000000 +0200 +++ oss-v4.0-build1016-src-gpl-modified/setup/Linux/preinst 2008-06-20 17:40:40.469766572 +0200 @@ -2,4 +2,5 @@ if [ -x /etc/init.d/alsa-utils ]; then /etc/init.d/alsa-utils stop || true; fi if [ -x /usr/sbin/alsa ]; then /usr/sbin/alsa force-unload || true; fi if [ -x /etc/init.d/alsa ]; then /etc/init.d/alsa force-unload || true; fi +touch /tmp/OSS_UPGRADE exit 0