summaryrefslogtreecommitdiffstats
path: root/abs/extra/oss/oss.install
blob: 8c4bd0a204f97057cca31fc150a296fa4141efb5 (plain)
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
31
32
33
34
35
36
37
38
_MSG_LIBOSSDIR=" Please note that OSS stores some of its configuration files
 at /usr/lib/oss. If you are upgrading from an older OSS
 release and it doesn't work properly, try removing that
 directory and reinstall this package."

post_install() {
	echo "Creating backup of alsa modules"
	KER=`uname -r`
	cd /lib/modules/$KER/kernel
	tar -cvf /lib/modules/alsa-$KER.tar sound
	rm -rf sound
#	/bin/sh /usr/lib/oss/build/install.sh &> /dev/null
	depmod -a

}

post_upgrade() {
	echo "Running OSS update script..."
	KER=`uname -r`
	cd /lib/modules/$KER/kernel
	if [ -f sound/soundcore.ko ]
	then
		tar -cvf /lib/modules/alsa-$KER.tar sound
		rm -rf sound
		/bin/true
	fi
	depmod -a
}

pre_remove() {

}

post_remove() {

	/bin/true
}