From 84f23b220398acbd46d3dd7c636b35be35344e54 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 17 Mar 2013 19:09:08 +0100 Subject: [PATCH] syslog: Use /media/mmcblk0p1/log to match /var/log The nitb configuration expects /media/mmcblk0p1/log and to make it work and match with unix naming use the singular version. --- recipes-apps/busybox/busybox_sysmocom.inc | 2 +- recipes-apps/busybox/files/syslog.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-apps/busybox/busybox_sysmocom.inc b/recipes-apps/busybox/busybox_sysmocom.inc index 97e9710..aa49185 100644 --- a/recipes-apps/busybox/busybox_sysmocom.inc +++ b/recipes-apps/busybox/busybox_sysmocom.inc @@ -1,6 +1,6 @@ SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:" -PRINC = "12" +PRINC = "13" SRC_URI += "file://busybox-ifplugd.sh \ file://ifplugd.sh" diff --git a/recipes-apps/busybox/files/syslog.conf b/recipes-apps/busybox/files/syslog.conf index 4f387a0..ee5d485 100644 --- a/recipes-apps/busybox/files/syslog.conf +++ b/recipes-apps/busybox/files/syslog.conf @@ -12,9 +12,9 @@ LOGLEVEL=4 # magic when a MMC card is mounted USING_MMC_CARD=`/bin/mount | grep /media/mmcblk0p1 | wc -l` if [ 1 -eq $USING_MMC_CARD ] ; then - if [ -e /media/mmcblk0p1/logs ] ; then + if [ -e /media/mmcblk0p1/log ] ; then echo "Using mmc card" - LOGFILE=/media/mmcblk0p1/logs/messages + LOGFILE=/media/mmcblk0p1/log/messages DESTINATION="file" ROTATESIZE=2048 ROTATEGENS=20