Check if array is set
Remove extra ; and space
Process obsolete files in shell script instead of php
Simplify post_upgrade_command logic and obsolete /usr/local/sbin/cvs_sync.sh instead of removing it on post_upgrade_command
Fix #3749:
When a full upgrade from 2.1.x to 2.2 is being done, after decompresstarball 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...
Back to cons25 for now since we found some issues with xterm on serial console
Change default console from cons25 to xterm, while I'm here, simplify the check
Get rid of embedded platform. Its time to GC this
There is no need to make distinction in kernel anymore since they are the same nowdays and it does the right thing(tm) most of the time
Add a file flag to trigger the forced serial or else we may miss it during a firmware update and still end up with an accidentally disabled port.
Add a mechanism by which the serial port can be forced on always regardless of the config setting. (useful for nano+vga setups)
Make this name a little more general in case we decide to have multiple similar files.
If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot.
Also run mtree check post-upgrade.
Be a little smarter about the default kernel in rare cases where we cannot determine what was in use.
Remove other potential places where someone could select a kernel we no longer ship. Try to improve kernel detection a little more.
Don't skip over wrap_vga here.
Fix case, it's not ARGV it's argv for php
Be more verbose during upgrade to see why nanobsd isn't carrying over the setting as expected.
Fixup post-update processing on NanoBSD
Use !empty instead of isset to prevent accidental deletion of the last used repository URL when firmware update gitsync settings have been saved without a repository URL.
Fix filename used in check for existence of the uniprocessor kernel to match the one that was being used to extract.
Fixup the kernel upgrade code a bit to be safer, and assume SMP in the default case, and also warn if there was a problem. Should fix #1427
Unbreak a number of explode() replacements which required preg_split()
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.Replacing it surpresses all the warnings
Clean up .profile and .shrc
Setup serial bits after upgrade on NanoBSD, too.
Move the code to touch needs_package_sync into the shell script portion of the post upgrade command. The PHP portion will fail spectacularly during the 1.2.3-to-2.0 upgrade trying to run the new binaries on the old OS. The shell script part still works. Fixes #1251 enough for what we need. The PHP code can never run properly there, but at least we can trigger the package reinstall and the rest can sort itself out when 2.0 boots the first time.
Exclude loader.conf from being update during kernel update
We no longer use /var/run/config.lock - catch up to other progress. Also, use lockf to test if the config is locked now, with a 30 second timeout.
Revert "Swoop through and stop any packages prior to upgrade. Ticket #1156"
This reverts commit cf42de70c84632bcee5d6d545b1242f14a73c618.
Swoop through and stop any packages prior to upgrade. Ticket #1156
Add option to System: Firmware: Settings for running gitsync after installing an update, hidden/disabled if git has not been installed yet.
Add routed/ items to obsoleted files. Force removal of file so that directories can be included in the future
Move files to pfSense.obsoletedfiles
Overwrite .cshrc and .profile
Escape command
Handle console too for noninteractive
Backout last commit, need to figure out the console angle as well
Fix non-interactive script bug on upgrade.
Complete path to rm
Ensure we are mount rw
Oops, use /boot/kernel/
Move pfsense_kernel.txt to /tmp and remove /boot/kernel/* contents so weare guarantee'd a fresh kernel directory (note freebsd kernel install movesthe old kernel directory to kernel.old so this is very similar.
Remove obsoleted files after upgrade
Only signal a package reinstall on full installations.
Record prior version
Adding pre upgrade hook
Signal a package reinstall after upgrade
Do not assume that we ship uniprocessor kernel on LiveCD any longer.
Untar the complete kernel to /boot/ instead of just the kernel file itself
Nuke /usr/local/sbin/php if it exists on upgrade
Move ttys_wrap into place last.
Check value of /etc/platform when installing the correct ttys file.
Reported-by: Vivek Khera
Nuke cvs_sync.sh on upgrade now that it resides in pfSsh.php
Remove any previous MD5 sums after upgrade.
From Seth:
If index.html, fred.png or dfuife.cgi is found remove them on upgrade.
Only zap /kernels directory if it exists
Reinstall correct kernel after upgrade.
Upgrade RELENG_1 as well for embedded.