diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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 0000000000..a97b0681e1 --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/dmesg.sh | |||
@@ -0,0 +1,17 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: dmesg | ||
4 | # Required-Start: | ||
5 | # Required-Stop: | ||
6 | # Default-Start: S | ||
7 | # Default-Stop: | ||
8 | ### END INIT INFO | ||
9 | |||
10 | if [ -f /var/log/dmesg ]; then | ||
11 | if [ -f /usr/sbin/logrotate ]; then | ||
12 | logrotate -f /etc/logrotate-dmesg.conf | ||
13 | else | ||
14 | mv -f /var/log/dmesg /var/log/dmesg.old | ||
15 | fi | ||
16 | fi | ||
17 | dmesg -s 131072 > /var/log/dmesg | ||