summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOvidiu Vancea <ovidiu.vancea@ni.com>2016-08-12 18:04:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-23 17:44:35 +0100
commit0d445840c4a93392b72f4cc031bf5cff4b5da046 (patch)
tree17b4f3a7a7b2a2f4a619adf3b3c275816b6a2367 /meta
parent4945cdfd767b844f01e9e793fb1c1b07e5b7f1ab (diff)
downloadpoky-0d445840c4a93392b72f4cc031bf5cff4b5da046.tar.gz
initscripts: Check for logrotate in dmesg.sh
Autodetect previously hardcoded logrotate location because it can be installed in multiple places like /usr/bin/logrotate which is very common besides /usr/sbin (From OE-Core rev: 277a5975d43125623b5a51ddcb48f9ee2474d0fc) Signed-off-by: Ovidiu Vancea <ovidiu.vancea@ni.com> Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rwxr-xr-x[-rw-r--r--]meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh b/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh
index a97b0681e1..2b9eba64cf 100644..100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh
@@ -8,8 +8,8 @@
8### END INIT INFO 8### END INIT INFO
9 9
10if [ -f /var/log/dmesg ]; then 10if [ -f /var/log/dmesg ]; then
11 if [ -f /usr/sbin/logrotate ]; then 11 if LOGPATH=$(which logrotate); then
12 logrotate -f /etc/logrotate-dmesg.conf 12 $LOGPATH -f /etc/logrotate-dmesg.conf
13 else 13 else
14 mv -f /var/log/dmesg /var/log/dmesg.old 14 mv -f /var/log/dmesg /var/log/dmesg.old
15 fi 15 fi