summarylogtreecommitdiffstats
path: root/foo2zjs.install
blob: 715ac2f4268f0591deba6d10f2584369319d093b (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 https://foo2zjs.linkevich.net/"
	echo "> to choose the appropriate driver for your printer."
}

post_upgrade() {
	reload_udev
	restart_cups
}

post_remove() {
	reload_udev
	restart_cups
}