From 5c8ae57a388ac81e3e5c78c4e72c2e3e9aab200e Mon Sep 17 00:00:00 2001 From: fake Date: Fri, 4 Aug 2006 11:17:36 +0000 Subject: [PATCH] fake: pcsc-lite: only install devfsd config if devfsd is actually installed. fixes build... [2006072818021212828] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7813 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/tibit/pcsc-lite/pcsc-lite.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/tibit/pcsc-lite/pcsc-lite.conf b/package/tibit/pcsc-lite/pcsc-lite.conf index 21a542405..4b2255e9e 100644 --- a/package/tibit/pcsc-lite/pcsc-lite.conf +++ b/package/tibit/pcsc-lite/pcsc-lite.conf @@ -25,12 +25,14 @@ var_append confopt ' ' "--enable-debug --enable-debugatr" post_pcsc() { # mkdir -p /usr/local/pcsc/drivers - cat << EOT > /etc/devfsd.d/pcsc + if pkginstalled devfsd ; then + cat << EOT > /etc/devfsd.d/pcsc # Let's assume in the default config that every tts is a pcsc device. # REGISTER ^tts/([0-9]+)$ CFUNCTION GLOBAL mksymlink ../tts/\1 pcsc/\1 UNREGISTER ^tts/([0-9]+)$ CFUNCTION GLOBAL unlink pcsc/\1 EOT + fi echo "Installing start-stop script" install_init pcscd $confdir/pcscd.init