blob: a1fe3fbf95a465252669607e3041d4b21149509d (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
post_install() {
post_upgrade
# Re-initialize the UPEK device
if [[ `which udevadm` ]]; then
for ID in 2015 2016; do
udevadm trigger --subsystem-match=usb --attr-match=idVendor=0483 --attr-match=idProduct=$ID
done
for ID in 2015 2016 1000 1001 3000; do
udevadm trigger --subsystem-match=usb --attr-match=idVendor=147e --attr-match=idProduct=$ID
done
fi
}
post_upgrade() {
ldconfig
cat << EOF
Please make sure your user is a member of "plugdev" group if you use UPEK
non-free library:
"sudo gpasswd -a USERNAME plugdev"
and modify your PAM configuration
(e.g., /etc/pam.d/{login,su,sudo,gdm}).
fingerprint-polkit-agent conflicts with files in /etc/xdg/autostart that must
be removed:
"polkit-gnome-authentication-agent-1.desktop" and
"polkit-kde-authentication-agent-1.desktop".
Add "debug" switch to fingerprint-gui, you can see the debug log in
/var/log/auth.log
Make sure that directory "/var/lib/fingerprint-gui" and all its subdirectories
are owned by root.root with mode 755 and all files in these directories are also
owned by root.root with mode 600.
Refer to "Manual_en.html" and "CHANGELOG" for more information.
EOF
# plugdev group changes
getent group plugdev &> /dev/null || groupadd -r plugdev > /dev/null
chown -R root.plugdev "/var/upek_data"
chown root.plugdev "/etc/upek.cfg"
# fingerprint data changes
chown -R root.root "/var/lib/fingerprint-gui"
find "/var/lib/fingerprint-gui" -type d -exec chmod 755 {} \;
find "/var/lib/fingerprint-gui" -type f -exec chmod 600 {} \;
}
post_remove() {
getent group plugdev &> /dev/null && groupdel plugdev > /dev/null
}
|