Project

General

Profile

« Previous | Next » 

Revision 6ae579b5

Added by Phil Davis over 9 years ago

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...

View differences:

etc/rc.firmware
365 365
	echo "" >> /conf/upgrade_log.txt
366 366

  
367 367
	# Trigger a package reinstallation on reboot
368
	touch /conf/needs_package_sync
368
	touch /conf/needs_package_sync_after_reboot
369 369

  
370 370
	# remount /cf ro
371 371
	/etc/rc.conf_mount_ro

Also available in: Unified diff