2013-03-17 14:09:44 +00:00
|
|
|
DESTINATION="buffer" # log destinations (buffer file remote)
|
|
|
|
MARKINT=20 # intervall between --mark-- entries
|
|
|
|
LOGFILE=/var/log/messages # where to log (file)
|
|
|
|
REMOTE=loghost:514 # where to log (syslog remote)
|
|
|
|
REDUCE=no # reduce-size logging
|
|
|
|
#ROTATESIZE=0 # rotate log if grown beyond X [kByte] (incompatible with busybox)
|
|
|
|
#ROTATEGENS=3 # keep X generations of rotated logs (incompatible with busybox)
|
|
|
|
BUFFERSIZE=64 # size of circular buffer [kByte]
|
|
|
|
FOREGROUND=no # run in foreground (don't use!)
|
2013-03-17 18:46:41 +00:00
|
|
|
LOGLEVEL=6
|
2013-03-17 14:09:44 +00:00
|
|
|
|
|
|
|
# magic when a MMC card is mounted
|
|
|
|
USING_MMC_CARD=`/bin/mount | grep /media/mmcblk0p1 | wc -l`
|
|
|
|
if [ 1 -eq $USING_MMC_CARD ] ; then
|
2013-03-17 18:09:08 +00:00
|
|
|
if [ -e /media/mmcblk0p1/log ] ; then
|
2013-03-17 14:09:44 +00:00
|
|
|
echo "Using mmc card"
|
2013-03-17 18:09:08 +00:00
|
|
|
LOGFILE=/media/mmcblk0p1/log/messages
|
2013-03-17 14:09:44 +00:00
|
|
|
DESTINATION="file"
|
|
|
|
ROTATESIZE=2048
|
|
|
|
ROTATEGENS=20
|
|
|
|
fi
|
|
|
|
fi
|