diff --git a/usr/share/initramfs-tools/hooks/cryptlukssc b/usr/share/initramfs-tools/hooks/cryptlukssc index 6a9c067..8dc14ab 100755 --- a/usr/share/initramfs-tools/hooks/cryptlukssc +++ b/usr/share/initramfs-tools/hooks/cryptlukssc @@ -38,7 +38,12 @@ else fi copy_exec /lib/libpcsclite.so.1 /lib cp -r /usr/lib/pcsc ${DESTDIR}/usr/lib -cp /etc/reader.conf ${DESTDIR}/etc +if [ -e /etc/reader.conf.d ] +then + cp -Rp /etc/reader.conf.d ${DESTDIR}/etc/ +else + cp /etc/reader.conf ${DESTDIR}/etc +fi # Install opensc commands and conf file copy_exec /usr/bin/opensc-tool /bin