summarylogtreecommitdiffstats
path: root/8723bs-git.install
blob: a3bfcb22afc844931d65f1b7c80055ecb11eb276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pre_install() {
	# unload old module version
	modprobe -r 8723bs
	# trash old module versions 
	find /lib/modules/$(uname -r) -name 8723bs*ko* -exec rm -f {} \; 
}


post_install() {
	_kver=$(uname -r)
	echo -e "\nPlease run following command by yourself:\n"
	echo "sudo depmod -a ${_kver}"
	echo -e "sudo modprobe 8723bs\n"
	echo -e "dont forget to update initrd if needed\n"
}

post_remove() {
	# delete old module dir
	find /lib/modules/$(uname -r) -name rtl8723bs -type d -exec rm -rf {} \;
}