packages: pcsc-lite/pcsc-lite-pcscd.init - do not log debug by default

glen glen at pld-linux.org
Wed Jan 12 01:23:11 CET 2011


Author: glen                         Date: Wed Jan 12 00:23:11 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- do not log debug by default

---- Files affected:
packages/pcsc-lite:
   pcsc-lite-pcscd.init (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: packages/pcsc-lite/pcsc-lite-pcscd.init
diff -u packages/pcsc-lite/pcsc-lite-pcscd.init:1.13 packages/pcsc-lite/pcsc-lite-pcscd.init:1.14
--- packages/pcsc-lite/pcsc-lite-pcscd.init:1.13	Wed Jan  5 22:36:58 2011
+++ packages/pcsc-lite/pcsc-lite-pcscd.init	Wed Jan 12 01:23:06 2011
@@ -23,7 +23,8 @@
 umask 077
 
 # Set defaults
-LOGGING="yes"
+LOGLEVEL=""
+PCSCD_OPTIONS=""
 
 # Get service config - may override defaults
 [ -f /etc/sysconfig/pcscd ] && . /etc/sysconfig/pcscd
@@ -34,14 +35,15 @@
 		return
 	fi
 
-	if is_yes "${LOGGING}"; then
-		LOGOPT="-d"
-	else
-		LOGOPT=""
-	fi
+	local logopt
+	case "$LOGLEVEL" in
+	debug|info|error|critical)
+		logopt=--$LOGLEVEL
+	;;
+	esac
 
 	msg_starting "PC/SC smart card daemon"
-	daemon /usr/sbin/pcscd $LOGOPT
+	daemon /usr/sbin/pcscd $logopt $PCSCD_OPTIONS
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/pcscd
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pcsc-lite/pcsc-lite-pcscd.init?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list