summaryrefslogtreecommitdiff
path: root/setup/Linux/postinst
blob: f1ccbf3b73572bfacc849fe57b77924c30d94201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
OSSLIBDIR=/usr/lib/oss
if [ -e /tmp/OSS_UPGRADE ]; then rm /tmp/OSS_UPGRADE; fi
if [ -e /etc/oss.conf ]; then . /etc/oss.conf; else echo "OSSLIBDIR=/usr/lib/oss" > /etc/oss.conf; fi
echo "Building OSS Modules for Linux-`uname -p` `uname -r`"
cd "$OSSLIBDIR"/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
sync
/usr/sbin/soundon || exit 0