3 changed files with 33 additions and 1 deletions
@ -0,0 +1,12 @@
|
||||
|
||||
#!/bin/bash |
||||
function checkCoreDump { |
||||
SAVEFILE="coredumpcount" |
||||
coredumpcount=$(ls "/var/lib/systemd/coredump/" | wc -l) |
||||
lastcount=$(cat "${SAVEFILE}") |
||||
echo "${coredumpcount}" > "${SAVEFILE}" |
||||
if [ "$coredumpcount" -gt "${lastcount}" ]; then |
||||
return 1 |
||||
fi |
||||
return 0 |
||||
} |
Loading…
Reference in new issue