parent
9565482b65
commit
a6e9b97b2a
@ -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