blob: 57a8ec6630c9d8e313f369b95f430c2e269794d2 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
pre_install() {
#make a backup copy of the alsa modules
KERNAL=`uname -r`
MODULE=/lib/modules/$KERNAL/kernel/sound
if [ -e $MODULE ]
then
echo "creating archive of alsa modules"
cd $MODULE
cd ..
tar -cvf /lib/modules/$KERNAL/kernel/alsa-$KERNAL.tar sound
rm -rf $MODULE
fi
}
post_install() {
echo "Probing soundcards, change /usr/lib/oss/etc/installed_drivers as needed afterwards if
you want to disable any of the OSS modules. You can run '/usr/sbin/ossdetect -v' at any time
if you have changed soundcards."
/usr/sbin/ossdetect -v
/sbin/ldconfig
/bin/true
}
pre_upgrade() {
sv stop oss
pre_install
}
post_upgrade() {
sv start oss
echo "If you changed your soundcard, reprobe for soundcards using '/usr/sbin/ossdetect -v'."
/sbin/ldconfig # We need to run this since libflashsupport.so is installed on x86
/bin/true
}
pre_remove() {
sv stop off
#sh /usr/lib/oss/scripts/restore_drv.sh
}
post_remove() {
echo "/usr/lib/oss/ will still contain files after removal as those files were generated by OSS
after instalation. Delete them manually unless you want to keep them for later use."
if [ `uname -m` == "i686" ]; then
rm -f /usr/lib/libflashsupport.so
fi
/bin/true
}
op=$1
shift
[ "$(type -t "$op")" = "function" ] && $op "$@"
# vim:set ts=2 sw=2 et:
|