iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixes
[distro-setup]
/
filesystem
/
usr
/
local
/
bin
/
myupgrade
diff --git
a/filesystem/usr/local/bin/myupgrade
b/filesystem/usr/local/bin/myupgrade
index 55e722135bd203055b81a21cd15652f5e2d79523..712047a684e3ffc1de594b79d1eeefc1bae27924 100755
(executable)
--- a/
filesystem/usr/local/bin/myupgrade
+++ b/
filesystem/usr/local/bin/myupgrade
@@
-25,6
+25,7
@@
if [[ -s /var/log/checkrestart.log ]]; then
done
for x in {30..1}; do
if ! fuser /var/lib/dpkg/lock &> /dev/null; then
+ echo "pid $PID. unattended upgrade, rebooting now" | pee cat "wall -n"
/sbin/reboot
exit 0
fi