summaryrefslogtreecommitdiff
path: root/audio/oss/DEINSTALL
blob: d52ac040bd6330cd24aec4ae5be24335be3da4df (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
# $NetBSD: DEINSTALL,v 1.4 2002/10/03 10:34:23 jlam Exp $

OSSLIBDIR="@OSSLIBDIR@"
SFILES="@SFILES@"

case ${STAGE} in
DEINSTALL)
	#
	# Ensure the OSS LKM is unloaded.
	#
	if [ -f @RCD_SCRIPTS_DIR@/oss ]; then
		@RCD_SCRIPTS_DIR@/oss forcestop
	fi
	#
	# Unconditionally remove the OSS files in /etc.
	#
	for file in ${SFILES}; do
		${RM} -f /etc/$${file}
	done
	#
	# Unconditionally remove the OSS license file.
	#
	${RM} -f ${OSSLIBDIR}/license.asc
	#
	# Remove some files generated by soundconf/sndconf.
	#
	${RM} -f ${OSSLIBDIR}/*.log
	${RM} -f ${OSSLIBDIR}/devices.cfg
	${RM} -f ${OSSLIBDIR}/modules.cfg
	${RM} -f ${OSSLIBDIR}/order.html
	${RM} -f ${OSSLIBDIR}/pnpres.dat
	;;

POST-DEINSTALL)
	#
	# Remove the OSS devices.
	#
	${RM} -f /dev/dsp* /dev/sound /dev/audio* /dev/mixer* /dev/midi*
	${RM} -f /dev/sequencer /dev/music /dev/sndstat

	${CAT} << EOF
===========================================================================

The OSS devices in /dev have been removed.  You should run

	cd /dev; sh MAKEDEV all

to recreate any audio devices which were overwritten by the OSS devices.

===========================================================================
EOF
	;;
esac