summarylogtreecommitdiffstats
path: root/btusb-qca-0x3004.install
blob: 6d6a61d8fde573fce8d23efb8e4f5daed7cb65a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
_kernmoddir=/usr/lib/modules/`uname -r`

post_install() {
	cd $_kernmoddir/updates
	cp $_kernmoddir/kernel/drivers/bluetooth/* .
	sudo rm btusb.ko.gz
	sudo gzip -9 -k btusb.ko
	sudo depmod -a
	sudo modprobe -r btusb
	sudo modprobe btusb
}

post_upgrade() {
	cd $_kernmoddir/updates
	cp $_kernmoddir/kernel/drivers/bluetooth/* .
	sudo rm btusb.ko.gz
	sudo gzip -9 -k btusb.ko
	sudo depmod -a
	sudo modprobe -r btusb
	sudo modprobe btusb
}