Add -p option to checkrestart

This commit is contained in:
Luc Didry 2016-11-03 08:24:32 +01:00
parent 0b4b21132f
commit 993a304c5d
1 changed files with 1 additions and 1 deletions

View File

@ -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