summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
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