summarylogtreecommitdiffstats
path: root/foo2zjs.install
blob: e3ca9c51fbcda360ccfe2b5f2bb9d6ba747101b9 (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
28
29
30
restart_cups() {
	echo "> Now restarting CUPS..."
	systemctl try-restart cups.service
}

reload_udev() {
	echo "> Now reloading udev rules database..."
	udevadm control --reload
}

post_install() {
	reload_udev
	restart_cups

	echo ""
	echo "> You need to add your user to the lp group."
	echo ""
	echo "> Please refer to the table at http://foo2zjs.rkkda.com"
	echo "> to choose the appropriate driver for your printer."
}

post_upgrade() {
	reload_udev
	restart_cups
}

post_remove() {
	reload_udev
	restart_cups
}