X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fusr%2Flocal%2Fbin%2Fmyupgrade;h=712047a684e3ffc1de594b79d1eeefc1bae27924;hb=6f1f8a104c9b38936ade2d27e835479523985133;hp=55e722135bd203055b81a21cd15652f5e2d79523;hpb=6459d4698ef983f7b1540589b87013c76913393d;p=distro-setup diff --git a/filesystem/usr/local/bin/myupgrade b/filesystem/usr/local/bin/myupgrade index 55e7221..712047a 100755 --- 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