diff options
author | arcan1s | 2015-07-08 16:54:32 +0300 |
---|---|---|
committer | arcan1s | 2015-07-08 16:54:32 +0300 |
commit | 990c67081d4987d882cc1092fd9058176a405856 (patch) | |
tree | 5a60e98156bb3c905aa39ddb145b5f2fed3d472a /fingerprint-gui.install | |
download | aur-990c67081d4987d882cc1092fd9058176a405856.tar.gz |
upload fingerprint-gui
Diffstat (limited to 'fingerprint-gui.install')
-rw-r--r-- | fingerprint-gui.install | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/fingerprint-gui.install b/fingerprint-gui.install new file mode 100644 index 000000000000..67c1b8063930 --- /dev/null +++ b/fingerprint-gui.install @@ -0,0 +1,54 @@ +post_install() { + post_upgrade + # Re-initialize the UPEK device + if [[ `lsusb -d 0483:` ]] || [[ `lsusb -d 147e:` ]] + then + 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 + 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 + +Refer to "Manual_en.html" and "CHANGELOG" for more information. +EOF + if [[ `lsusb -d 0483:` ]] || [[ `lsusb -d 147e:` ]] + then + getent group plugdev &> /dev/null || groupadd -r plugdev > /dev/null + chown -R root.plugdev /var/upek_data + chown root.plugdev /etc/upek.cfg + fi +} + +post_remove() { + if [[ `lsusb -d 0483:` ]] || [[ `lsusb -d 147e:` ]] + then + getent group plugdev &> /dev/null && groupdel plugdev > /dev/null + fi +} |