File: alsa-base.postrm

package info (click to toggle)
alsa-driver 1.0.13-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,108 kB
  • ctags: 50,477
  • sloc: ansic: 319,881; sh: 32,930; makefile: 2,015; python: 1,527; perl: 1,316; xml: 896; awk: 66
file content (29 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = "purge" ]; then
	if [ -L /dev/sndstat ]; then
		rm -f /dev/sndstat
		echo "Remaking /dev/sndstat."
		# Keep this in sync with /sbin/MAKEDEV
		if cd /dev && mknod --mode=0660 sndstat c 14 6 ; then
			chown root:audio sndstat || :
		fi
	fi
	# Remove configuration files
	rm -f \
		/etc/default/alsa \
		/etc/default/alsa.dpkg-old
	# Remove apm symlinks
	rm -f \
		/etc/apm/suspend.d/??alsa \
		/etc/apm/resume.d/??alsa
	# Remove run time files
	rm -rf /var/run/alsa
	# Update modutils config
	[ "$(which update-modules 2>/dev/null)" ] && update-modules >/dev/null || :
fi