This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univnautes/tmp
Renato Botelho 720c529f28 Fix #3749:
When a full upgrade from 2.1.x to 2.2 is being done, after decompress
tarball with 2.2 files, /bin/sh is not able to run a script using syntax
'sh scriptname'. Because of that, /tmp/post_upgrade_command and
/etc/rc.reboot are not executed ending on an incomplete and broken
update.

Since we need to fix it only touching 2.2 files, the only way I found to
workaround the situation is to use pre_upgrade_command script to:

- Copy /bin/sh to /tmp/sh.old
- Change /etc/rc.firmware to use sh.old when calling
post_upgrade_command and rc.reboot
- Kill current rc.firmware process
- Start a new rc.firmware using same parameters

This issue doesn't affect nanobsd or 2.2 -> 2.2 updates
2014-07-11 08:23:04 -03:00
..
post_upgrade_command Back to cons25 for now since we found some issues with xterm on serial console 2014-07-02 17:24:25 -03:00
post_upgrade_command.php Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
pre_upgrade_command Fix #3749: 2014-07-11 08:23:04 -03:00