8b7b601bbea712fb7e624ff469b9eef0b27a634c
2 if [[ $
(/usr
/sbin
/checkrestart |
wc -l) != 1 ]]; then
4 echo "pid $PID. unattended upgrade, rebooting in $((x*10)) seconds" | wall
8 if ! fuser
/var
/lib
/dpkg
/lock
&> /dev
/null
; then
12 echo "pid $PID. unattended upgrade reboot waiting 10 seconds for dpkg lock" | wall
15 echo "dpkg locked for 5 minutes, automatic reboot failed" | pee
cat wall