From 0368e3a1d13c1fe18bf07e6c5696d7c8ae38d1c0 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 14 Jan 2026 10:24:59 +0200 Subject: [PATCH] {bash,zsh}rc#fineid alias: add untested support for Atostek ID --- rc/bashrc | 9 +++++++-- rc/zshrc | 8 +++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 853eb7a3..69249a17 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -488,8 +488,13 @@ alias cwho="who -H -w -u" #alias inxi-update="inxi -U" # FINEID to ssh-agent -alias fineid="ssh-add -s /usr/lib64/libcryptoki.so" - +if [ -f "/usr/lib64/libcryptoki.so" ]; then + alias fineid="ssh-add -s /usr/lib64/libcryptoki.so" +elif [ -f "/usr/lib64/Atostek-ID-PKCS11.so" ]; then + alias fineid="ssh-add -s /usr/lib64/Atostek-ID-PKCS11.so" +else + alias fineid="echo 'No FINEID library found'" +fi # OS X # What is this? #alias osx-server-caching-interface="serveradmin settings caching:Interface =" diff --git a/rc/zshrc b/rc/zshrc index 61a0611f..2b81daae 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -476,7 +476,13 @@ alias cwho="who -H -w -u" #alias inxi-update="inxi -U" # FINEID to ssh-agent -alias fineid="ssh-add -s /usr/lib64/libcryptoki.so" +if [ -f "/usr/lib64/libcryptoki.so" ]; then + alias fineid="ssh-add -s /usr/lib64/libcryptoki.so" +elif [ -f "/usr/lib64/Atostek-ID-PKCS11.so" ]; then + alias fineid="ssh-add -s /usr/lib64/Atostek-ID-PKCS11.so" +else + alias fineid="echo 'No FINEID library found'" +fi # OS X # What is this?