mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 22:04:01 -07:00
v-commander: Enhance reboot requirement check to include dbus updates
This commit is contained in:
parent
87267eb18f
commit
63972e2266
1 changed files with 2 additions and 1 deletions
|
@ -202,7 +202,8 @@ do
|
|||
apt_upgraded=1
|
||||
|
||||
kernelupdate=$(grep -c 'linux-image-' /var/log/apt/history.log)
|
||||
if [ $kernelupdate -gt 0 ] || [ -f "/run/reboot-required" ] || [ -f "/var/run/reboot-required" ]; then
|
||||
dbusupdate=$(grep -c ' dbus:a' /var/log/apt/history.log)
|
||||
if [ $kernelupdate -gt 0 ] || [ $dbusupdate -gt 0 ] || [ -f "/run/reboot-required" ] || [ -f "/var/run/reboot-required" ]; then
|
||||
touch /root/kernelupdate
|
||||
echo "== kernel is updated, reboot is required!"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue