Project

General

Profile

Download (6.74 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
03918ae1 04/17/2009 03:03 AM Scott Ullrich

Remove lock hold later on

6e75ac00 04/17/2009 02:21 AM Scott Ullrich

Correct ordering, use a lock file. Launch upgrade in bg and look for lock file to guess if upgrade is in progress

4a8e802d 07/07/2008 02:06 AM Scott Ullrich

Add pre_upgrade_command hook support

84aa381e 05/18/2008 11:51 PM Scott Ullrich

Restore to 1.2-RELEASE file.

fee835af 03/29/2008 09:33 PM Scott Ullrich

Revert rc.firmware to a known working state now that the builder
process is a bit more sane.

5ee26051 03/22/2008 05:15 AM Scott Ullrich
  • Use /tmp/firmwareupgrades
  • Explode a mtree out to guarnatee we can extract a file
c01443f1 03/22/2008 12:44 AM Scott Ullrich

Latest round of fixes

e725bc6a 03/21/2008 11:50 PM Scott Ullrich

Remove .tar file if it exists before extracting.

d0b4f116 03/21/2008 11:45 PM Scott Ullrich

Correctly install files.

568ce5f4 03/21/2008 09:53 PM Scott Ullrich

Do not pass z flag to tar. The item is now gzipped.

f8c978e5 03/17/2008 04:02 AM Scott Ullrich
  • Do not worry about egrepping filenames
  • Surround locations in ""
5d14cbff 03/17/2008 03:59 AM Scott Ullrich

Remove firmware image once completed

41235422 03/17/2008 03:54 AM Scott Ullrich

Uncompress archive before tarring it. This avoids compression seek slowdowns

Suggested-by: cmb

dbb59707 03/17/2008 02:32 AM Scott Ullrich

chflags noschg file before rm

62d57e6d 03/17/2008 12:49 AM Scott Ullrich

Remove exec statement

afadfc62 03/17/2008 12:39 AM Scott Ullrich

Missing /

b00d1ade 03/17/2008 12:27 AM Scott Ullrich

Use install when upgrading.

69c4d460 05/09/2007 05:35 AM Scott Ullrich

Unlink upgrade file on upgrade.

8f798977 04/08/2007 11:46 PM Scott Ullrich

Remove configuration lock that would be acquired when you login to ssh after a firmware update.

Ticket #1258

d0b3b0b1 10/03/2006 10:01 PM Scott Ullrich

Run /tmp/post_upgrade_command after update if it exists

2b61eeb1 10/03/2006 09:57 PM Scott Ullrich

if the update firmware unpacks /tmp/no_upgrade_reboot_required then do not reboot after update.

51c9db03 04/16/2006 12:38 AM Scott Ullrich

Redirect scripts output to /tmp/firmware_update.log

97ab7fdc 04/16/2006 12:32 AM Scott Ullrich

Do not process custom image unless it really exists.

Before it was detecting an image of "" and triggering the -C error.

feb570f1 04/16/2006 12:24 AM Scott Ullrich

Do not process custom image unless it really exists.

Before it was detecting an image of "" and triggering the -C error.

bf7b4fcc 04/16/2006 12:13 AM Scott Ullrich

Switch to cd / && tar instead of -C to avoid:

tar: Error opening archive: Failed to open '-C': No such file or directory

cba9c643 04/02/2006 11:01 PM Scott Ullrich

Echo to WALL when upgrades begin

3ff346b9 01/05/2006 02:27 AM Scott Ullrich

Cleanup upgrade script

Thanks to Dario for helping!

24fbf166 01/05/2006 02:08 AM Scott Ullrich

Cleanup upgrade script

Thanks to Dario for helping!

58fb67ec 09/22/2005 03:40 PM Scott Ullrich

Do not run end of upgrade commands all the time. Only run after an upgrade.

242c837f 09/22/2005 03:30 PM Scott Ullrich

Do not create /ftmp ram disk. We are using /tmp at the moment.

7a35466c 09/07/2005 08:21 PM Scott Ullrich

if /etc/init_bootloader.sh exists, run this after upgrade. This will be the original bsdlabel command that was run.

ab821eae 09/07/2005 06:20 PM Scott Ullrich

Mount RO at the end of the file

21fbee83 09/07/2005 06:17 PM Scott Ullrich
  • sync before forcing umount.
  • sleep for 5 seconds
2abc3c88 08/31/2005 09:25 PM Scott Ullrich

call sync before umounting

37c39d36 08/31/2005 09:24 PM Scott Ullrich

unmount / after upgrade

c43e0966 08/31/2005 09:19 PM Scott Ullrich

use "/sbin/mount -w -o noatime /" to mount / on upgrade.

for some reason calling php from this script is very problematic. workaround this for now.

2a1fad88 08/20/2005 06:37 AM Scott Ullrich

Do not redirect console.

444c89d4 08/20/2005 03:29 AM Scott Ullrich

Do not process non-existant /sys

2962941d 08/20/2005 03:28 AM Scott Ullrich

Correct path to chflags

8652a410 08/20/2005 03:02 AM Scott Ullrich

Remove /var/run/firmware.lock after upgrad

04e985ee 08/19/2005 07:25 PM Scott Ullrich

Mount as rw during update.

533ad3cf 08/10/2005 03:03 AM Bill Marquette

Sanity check

1c895935 08/01/2005 05:17 PM Scott Ullrich

Convert to for loops

7e918c24 08/01/2005 03:58 PM Scott Ullrich

Do not touch /boot/

25a011ba 06/29/2005 10:36 PM Scott Ullrich

Purge savecore directory after upgrading

4d756ab1 06/29/2005 09:21 PM Scott Ullrich

Seek out and destroy CVS directories. DIE!

ac07aad1 06/29/2005 08:39 PM Scott Ullrich

Make sure /etc/rc.conf and /etc/motd don't sneak in.

7dc22ace 06/27/2005 09:09 PM Scott Ullrich

rc.subr is used by pcmcia facilities

d20aaef3 06/06/2005 04:55 PM Scott Ullrich

Remove /etc/rc.subr and /etc/rc.d after upgrade if it exists. We have our own rc process.

3465f09f 05/30/2005 09:49 PM Scott Ullrich

Send mtree output to syslog

7d7bd7ca 05/21/2005 04:23 AM Scott Ullrich

Hide warning messages

1e7ab453 05/21/2005 02:43 AM Scott Ullrich

Shell rc.reboot

59fe3cdf 05/19/2005 11:00 PM Scott Ullrich
  • Execute firmware upgrade in the background
  • Reboot again from /etc/rc.firmware, not from the web gui. This can be dangerous if the user cancels the update, navigates away from the page, etc.
8a1691dd 05/19/2005 05:53 PM Scott Ullrich
  • Complete path to common binaries
  • Find CVS directory and zap after upgrades
ccbbd520 05/19/2005 05:23 PM Scott Ullrich

Use complete path to mtree

7d894a89 05/07/2005 01:47 AM Colin Smith

Don't reboot after a firmware update - this is impractical with the new update structure.

6a2b5f1c 05/04/2005 11:03 PM Scott Ullrich

Ensure proper /etc/hosts symlink after upgrade

f21c836b 04/29/2005 05:13 PM Scott Ullrich

Only chmod user, not groups.

390c8e72 04/28/2005 02:34 AM Scott Ullrich

Restore flags before unmounting /cf

cd88352b 04/27/2005 11:18 PM Scott Ullrich

run remove_chflags before upgrading.. they will be restored by the tgz

9f0952aa 04/21/2005 01:00 AM Colin Smith

(#15) Use rc.reboot when rebooting and don't try to remove auto_upgrade_in_progress.

704ea918 04/20/2005 06:11 PM Scott Ullrich
  • Add remove_chflags function
  • Add backup_chflags function
  • Add restore_chflags function
  • Backup and restore the chflags before updating
6aada4ed 04/19/2005 10:39 PM Scott Ullrich
  • More debugging.
  • Remove /tmp/auto_upgrade_in_progress after completion
0d0a2294 04/19/2005 09:58 PM Scott Ullrich

Correct installed typo

316d02b3 04/19/2005 09:48 PM Scott Ullrich

Add debugging lines. For some reason tar is not being invoked even though the if section is being invoked.

0a5aabe6 04/18/2005 01:49 AM Colin Smith

Use /tmp/bdiff.log instead of /tmp/errors.

f704d5b0 04/18/2005 01:43 AM Colin Smith

We had three cases doing the same thing :P

89a5f445 04/18/2005 01:40 AM Colin Smith

Require an argument to be passed to the binary update function rather than defaulting to /tmp/latest_* - we're no longer using a single file for updates.

9f7369a1 04/13/2005 03:01 AM Bill Marquette

quiet down upgrade system a little

164d9696 04/13/2005 02:38 AM Bill Marquette

oops, not sure how I missed the 'v' - needed to create right output for egrep and nawk :)

03485a22 04/13/2005 02:30 AM Bill Marquette

no need to create full path to output file, just dump it in /tmp/patched

3200f985 04/12/2005 11:33 PM Bill Marquette

correctly ignore directories
compare md5's against the right variables

e7fb2f76 04/12/2005 10:14 PM Bill Marquette

comments

2d4f9a65 04/12/2005 10:12 PM Bill Marquette

and cleanup

b8575f61 04/12/2005 10:12 PM Bill Marquette

split out directories for sanities sake

e607da61 04/12/2005 10:05 PM Scott Ullrich

we're working in /tmp/patched.

2c505df5 04/12/2005 10:03 PM Bill Marquette

change order of bspatch and don't cd to /tmp/patched, /tmp is fine

a739eb02 04/12/2005 09:58 PM Bill Marquette

fix the tar, move bspatch where it belongs

cf4cdbf0 04/10/2005 08:44 PM Bill Marquette

A little cleanup of the new firmware upgrade code

4f432cb8 04/10/2005 06:33 PM Scott Ullrich

Remove contents of /tmp/patched/ on each pass

c92a7bbf 04/10/2005 06:32 PM Scott Ullrich
  • Check final outputted md5 against what the md5 should be
  • Alert the user if the md5 is not the same
  • Note the error in /tmp/errors
3dba31db 04/10/2005 05:39 PM Scott Ullrich

Add missing `

8b33f440 04/10/2005 01:31 AM Scott Ullrich

Turn binary_update item into a callable shell function

98dc9cd4 04/10/2005 01:19 AM Scott Ullrich

bsdpatch downloaded .tgz files from the new auto upgrade system

3db58e13 04/07/2005 03:40 AM Scott Ullrich
  • Add kernel version file
  • Cleanup and add more comments
1b8df11b 03/27/2005 10:39 PM Bill Marquette

Add $Id$ tags

cbd61550 03/03/2005 07:47 PM Scott Ullrich

If /tmp/custom.tgz exists, allow it to overwrite the upgrade. This can be useful if you do not wish to upgrade a certain part of pfSense.

be3239e3 02/07/2005 05:36 AM Scott Ullrich

Log upgrade actions to syslog.

18ff56f2 01/31/2005 11:28 PM Scott Ullrich

Add auto upgrade option to pfSense

0810f28a 11/28/2004 01:33 AM Scott Ullrich

make sure to unlink first during tar operations

4668f9f7 11/25/2004 01:18 AM Scott Ullrich

Introduce an easy way to upgrade firmware for pfSense.

5b237745 11/07/2004 03:06 AM Scott Ullrich

Initial revision