aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rcS.d/330-dmesg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rcS.d/330-dmesg.sh')
-rwxr-xr-xrc.d/rcS.d/330-dmesg.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/rc.d/rcS.d/330-dmesg.sh b/rc.d/rcS.d/330-dmesg.sh
new file mode 100755
index 00000000..42fb0efe
--- /dev/null
+++ b/rc.d/rcS.d/330-dmesg.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Now that we have all of our basic modules loaded and the kernel going,
+# let's dump the syslog ring somewhere so we can find it later
+[ -f /var/log/dmesg ] && mv -f /var/log/dmesg /var/log/dmesg.old
+dmesg -s 131072 > /var/log/dmesg
+: