summarylogtreecommitdiffstats
path: root/xvsdk.install
blob: 13d2389ad5ae97cba8fb4bacc48c5a898b1e1637 (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

post_install() {
	set -e
	if [ ! -e /etc/udev/rules.d/99-xvisio.rules ]; then
			#Add udev rules
			echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="040e", MODE="0666", GROUP="plugdev' > /etc/udev/rules.d/99-xvisio.rules
			#Reload udev rules
			udevadm control --reload || true
	fi
	#Reload ldconfig
	ldconfig || true
}

post_upgrade() {
	post_install
}

post_remove() {
	if [ -e /etc/udev/rules.d/99-xvisio.rules ]; then
		rm /etc/udev/rules.d/99-xvisio.rules
		#Reload udev rules
		udevadm control --reload || true
	fi
	#Reload ldconfig
	ldconfig || true

}