mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
57 lines
1.8 KiB
Plaintext
57 lines
1.8 KiB
Plaintext
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 {} \;
|
|
# icon update
|
|
update-desktop-database -q
|
|
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
|
}
|
|
|
|
post_remove() {
|
|
getent group plugdev &> /dev/null && groupdel plugdev > /dev/null
|
|
update-desktop-database -q
|
|
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
|
}
|