Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 2d6687894bb7723cfdccb4d94b3ee3f8 > files > 1

apcupsd-3.14.10-4.mga3.src.rpm

--- apcupsd-3.10.16/platforms/mandrake/apcupsd.in~	2004-12-30 09:18:03.882985839 +0100
+++ apcupsd-3.10.16/platforms/mandrake/apcupsd.in	2004-12-30 09:18:03.882985839 +0100
@@ -24,6 +24,9 @@
 # check for stale lockfiles
        LOCKDIR=`grep "^LOCKFILE" @sysconfdir@/apcupsd.conf | awk '{ print $2}'`
        DEVICE=`grep "^DEVICE" @sysconfdir@/apcupsd.conf | awk '{ print $2 }' | sed -e 's@/dev/@@g'`
+       if [ -z "${DEVICE}" ]; then
+          DEVICE=usb
+       fi
        LOCKFILE="${LOCKDIR}/LCK..${DEVICE}"
        if [ -f $LOCKFILE ]; then
 	  PID=`cat $LOCKFILE | awk '{ printf("%d",$1) }'`