summarylogtreecommitdiffstats
path: root/blacklist_pcspkr.install
blob: c141e85bf1d1ada815a490794d3a517d6aa4e690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install()
{
	if grep -q -i "pcspkr" /proc/modules
		then
			rmmod pcspkr
	fi
}

pre_remove()
{
	if ! grep -q -i "pcspkr" /proc/modules
		then
			modprobe pcspkr
	fi
}