diff options
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh b/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh new file mode 100644 index 0000000..a97b068 --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh @@ -0,0 +1,17 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: dmesg +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO + +if [ -f /var/log/dmesg ]; then + if [ -f /usr/sbin/logrotate ]; then + logrotate -f /etc/logrotate-dmesg.conf + else + mv -f /var/log/dmesg /var/log/dmesg.old + fi +fi +dmesg -s 131072 > /var/log/dmesg |