Commit 993a304c authored by Luc Didry's avatar Luc Didry

Add -p option to checkrestart

parent 0b4b2113
......@@ -3,7 +3,7 @@
. /etc/update-motd.d/colors
if [[ -x /usr/sbin/checkrestart ]]; then
n=$(/usr/sbin/checkrestart | grep "Found .* processes using old versions of upgraded files")
n=$(/usr/sbin/checkrestart -p | grep "Found .* processes using old versions of upgraded files")
re='Found (.*) processes using old versions of upgraded files'
if [[ $n =~ $re ]]; then
if [[ ${BASH_REMATCH[1]} -gt 0 ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment