summarylogtreecommitdiffstats
path: root/linuxtrack.install
blob: e723c15580e813fcb10ffafbed68420002390223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
	getent group uinput >/dev/null 2>&1 ||  groupadd uinput &>/dev/null
	modprobe uinput
	udevadm control --reload-rules
}

pre_upgrade() {
	rm -f /usr/lib/udev/rules.d/51-Mickey.rules
	rm -f /usr/lib/udev/rules.d/51-TIR.rules
}

post_upgrade() {
	udevadm control --reload-rules
}

post_remove() {
	if getent group uinput >/dev/null 2>&1; then
        	groupdel uinput
	fi
	udevadm control --reload-rules
	rm -f /usr/lib/udev/rules.d/99-Mickey.rules
	rm -f /usr/lib/udev/rules.d/99-TIR.rules
}