summarylogtreecommitdiffstats
path: root/fingerprint-gui.install
diff options
context:
space:
mode:
authorarcan1s2015-07-08 16:54:32 +0300
committerarcan1s2015-07-08 16:54:32 +0300
commit990c67081d4987d882cc1092fd9058176a405856 (patch)
tree5a60e98156bb3c905aa39ddb145b5f2fed3d472a /fingerprint-gui.install
downloadaur-990c67081d4987d882cc1092fd9058176a405856.tar.gz
upload fingerprint-gui
Diffstat (limited to 'fingerprint-gui.install')
-rw-r--r--fingerprint-gui.install54
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
+}