Revision 6ae579b5
Added by Phil Davis over 9 years ago
etc/rc.bootup | ||
---|---|---|
141 | 141 |
if (file_exists("/root/firmware.tgz")) |
142 | 142 |
unlink("/root/firmware.tgz"); |
143 | 143 |
|
144 |
/* Reinstall of packages after reboot has been requested */ |
|
145 |
if (file_exists('/conf/needs_package_sync_after_reboot')) { |
|
146 |
touch('/conf/needs_package_sync'); |
|
147 |
@unlink('/conf/needs_package_sync_after_reboot'); |
|
148 |
} |
|
149 |
|
|
144 | 150 |
/* start devd (dhclient now uses it) */ |
145 | 151 |
echo "Starting device manager (devd)..."; |
146 | 152 |
mute_kernel_msgs(); |
Also available in: Unified diff
Redmine #4279 Package reinstall displayed when shutting down before upgrade
Use a different flag file to indicate that a package reinstall is
required after a reboot is done first. This avoids the possibility that
the user navigates in the webGUI during the time while the shutdown is
in progress and is accidentally presented with the reinstall all
packages GUI button.
Early in rc.bootup switch the flag file to use its ordinary name, so
that all subsequent code in boot scripts and webGUI will work as it
already does to handle the package reinstall and notifying the user that
a package reinstall is about to be done or in progress...