iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve perf
[distro-setup]
/
filesystem
/
usr
/
local
/
bin
/
mycheckrestart
diff --git
a/filesystem/usr/local/bin/mycheckrestart
b/filesystem/usr/local/bin/mycheckrestart
index 64363b885201407f748f61a158c36941d894dca6..eec85848a7aaf642e06075ba0032a189add4a4d5 100755
(executable)
--- a/
filesystem/usr/local/bin/mycheckrestart
+++ b/
filesystem/usr/local/bin/mycheckrestart
@@
-14,4
+14,9
@@
if [[ $HOSTNAME != "$MAIL_HOST" && $hn != li.b8.nz && ! $DISPLAY ]]; then
exit 0
fi
exit 0
fi
-$s checkrestart | sed '/^Found 0 processes using old versions of upgraded files$/d'
+cmd="$s /usr/sbin/checkrestart -p"
+if [[ $($cmd | sed '/^Found 0 processes using old versions of upgraded files$/d' | wc -l) != 0 ]]; then
+ $cmd
+ echo "with -v:"
+ $cmd -v
+fi