summarylogtreecommitdiffstats
path: root/eidklient.install
blob: 0814a0a4ba891b9cdc83405386b809e7e3f4d38c (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
checkpcscd() {
    if [ "`systemctl is-enabled pcscd.socket`" != "enabled" -a \
         "`systemctl is-enabled pcscd.service`" != "enabled" ] ; then

        cat <<-EOF
		>>> pcscd is required for a proper function of eidklient
		>>> You can enable it by issuing:
		>>>
		>>> sudo systemctl enable pcscd.socket && sudo systemctl start pcscd.socket
	EOF
    fi
}

## arg 1:  the new package version
post_install() {
    checkpcscd
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
    checkpcscd
}