mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-17 17:31:27 +00:00
23 lines
764 B
Diff
23 lines
764 B
Diff
From cd1f76355a70ff394db64ac1f947c2704ed6c305 Mon Sep 17 00:00:00 2001
|
|
From: John Crispin <john@phrozen.org>
|
|
Date: Thu, 25 Mar 2021 08:03:28 +0100
|
|
Subject: [PATCH 22/23] base-files: add sysctl to reboot upon OOM
|
|
|
|
Signed-off-by: John Crispin <john@phrozen.org>
|
|
---
|
|
package/base-files/files/etc/sysctl.d/20-oom-reboot.conf | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
create mode 100644 package/base-files/files/etc/sysctl.d/20-oom-reboot.conf
|
|
|
|
diff --git a/package/base-files/files/etc/sysctl.d/20-oom-reboot.conf b/package/base-files/files/etc/sysctl.d/20-oom-reboot.conf
|
|
new file mode 100644
|
|
index 0000000000..6c161611c8
|
|
--- /dev/null
|
|
+++ b/package/base-files/files/etc/sysctl.d/20-oom-reboot.conf
|
|
@@ -0,0 +1,2 @@
|
|
+vm.panic_on_oom = 1
|
|
+kernel.panic = 10
|
|
--
|
|
2.25.1
|
|
|