Files
openwrt-packages/admin/earlyoom/test.sh
Alice H. 1727af3436 earlyoom: add new package
earlyoom checks the amount of available memory and swap at an adaptive
rate for up to 10 times per second. When both available memory and swap
are below threshold, it'll send SIGTERM or SIGKILL to the process with
the highest oom_score. Details about oom_score can be obtained at
https://man7.org/linux/man-pages/man5/proc_pid_oom_score.5.html

Signed-off-by: Alice H. <alice.hall0451+github@gmail.com>
2025-11-03 02:29:41 +02:00

4 lines
36 B
Bash

#!/bin/sh
"$1" -v 2>&1 | grep "$2"