]> Raphaël G. Git Repositories - bbcode/commitdiff
Add code enable and disable scripts
authorRaphaël Gertz <git@rapsys.eu>
Sun, 10 Feb 2019 04:49:41 +0000 (05:49 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 10 Feb 2019 04:49:41 +0000 (05:49 +0100)
disable.core [new file with mode: 0755]
enable.core [new file with mode: 0755]

diff --git a/disable.core b/disable.core
new file mode 100755 (executable)
index 0000000..92b6d3c
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo '|/bin/false' > /proc/sys/kernel/core_pattern
diff --git a/enable.core b/enable.core
new file mode 100755 (executable)
index 0000000..84677ca
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo 'dump.%e.%t.%p.core' > /proc/sys/kernel/core_pattern