diff --git a/linux_os/guide/system/accounts/accounts-physical/screen_locking/smart_card_login/configure_opensc_nss_db/bash/shared.sh b/linux_os/guide/system/accounts/accounts-physical/screen_locking/smart_card_login/configure_opensc_nss_db/bash/shared.sh index ff943d7de9a9..935d946befb6 100644 --- a/linux_os/guide/system/accounts/accounts-physical/screen_locking/smart_card_login/configure_opensc_nss_db/bash/shared.sh +++ b/linux_os/guide/system/accounts/accounts-physical/screen_locking/smart_card_login/configure_opensc_nss_db/bash/shared.sh @@ -4,8 +4,11 @@ # complexity = low # disruption = low -PKCSSW=$(/usr/bin/pkcs11-switch) +PKCSSW="/usr/bin/pkcs11-switch" +MODULE=$(${PKCSSW}) -if [ ${PKCSSW} != "opensc" ] ; then - ${PKCSSW} opensc +if [ "$MODULE" != "opensc" ] ; then + echo | ${PKCSSW} opensc fi + +modutil -force -add opensc -dbdir sql:/etc/pki/nssdb -libfile opensc-pkcs11.so