Commit Graph

64 Commits

Author SHA1 Message Date
Scott Ullrich
58fb67ec1b Do not run end of upgrade commands all the time. Only run after an upgrade. 2005-09-22 15:40:16 +00:00
Scott Ullrich
242c837f19 Do not create /ftmp ram disk. We are using /tmp at the moment. 2005-09-22 15:30:16 +00:00
Scott Ullrich
7a35466cd8 if /etc/init_bootloader.sh exists, run this after upgrade. This will be the original bsdlabel command that was run. 2005-09-07 20:21:25 +00:00
Scott Ullrich
ab821eae68 Mount RO at the end of the file 2005-09-07 18:20:05 +00:00
Scott Ullrich
21fbee83a9 * sync before forcing umount.
* sleep for 5 seconds
2005-09-07 18:17:43 +00:00
Scott Ullrich
2abc3c888d call sync before umounting 2005-08-31 21:25:29 +00:00
Scott Ullrich
37c39d368a unmount / after upgrade 2005-08-31 21:24:25 +00:00
Scott Ullrich
c43e096684 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.
2005-08-31 21:19:40 +00:00
Scott Ullrich
2a1fad88e7 Do not redirect console. 2005-08-20 06:37:02 +00:00
Scott Ullrich
444c89d4c4 Do not process non-existant /sys 2005-08-20 03:29:51 +00:00
Scott Ullrich
2962941d4a Correct path to chflags 2005-08-20 03:28:29 +00:00
Scott Ullrich
8652a41098 Remove /var/run/firmware.lock after upgrad 2005-08-20 03:02:20 +00:00
Scott Ullrich
04e985eea0 Mount as rw during update. 2005-08-19 19:25:59 +00:00
Bill Marquette
533ad3cfce Sanity check 2005-08-10 03:03:13 +00:00
Scott Ullrich
1c8959358b Convert to for loops 2005-08-01 17:17:00 +00:00
Scott Ullrich
7e918c2473 Do not touch /boot/ 2005-08-01 15:58:58 +00:00
Scott Ullrich
25a011baf1 Purge savecore directory after upgrading 2005-06-29 22:36:30 +00:00
Scott Ullrich
4d756ab110 Seek out and destroy CVS directories. DIE! 2005-06-29 21:21:08 +00:00
Scott Ullrich
ac07aad19b Make sure /etc/rc.conf and /etc/motd don't sneak in. 2005-06-29 20:39:40 +00:00
Scott Ullrich
7dc22ace8a rc.subr is used by pcmcia facilities 2005-06-27 21:09:17 +00:00
Scott Ullrich
d20aaef3a3 Remove /etc/rc.subr and /etc/rc.d after upgrade if it exists. We have our own rc process. 2005-06-06 16:55:04 +00:00
Scott Ullrich
3465f09f39 Send mtree output to syslog 2005-05-30 21:49:16 +00:00
Scott Ullrich
7d7bd7ca40 Hide warning messages 2005-05-21 04:23:45 +00:00
Scott Ullrich
1e7ab453c3 Shell rc.reboot 2005-05-21 02:43:39 +00:00
Scott Ullrich
59fe3cdfd5 * 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.
2005-05-19 23:00:45 +00:00
Scott Ullrich
8a1691dd3f * Complete path to common binaries
* Find CVS directory and zap after upgrades
2005-05-19 17:53:39 +00:00
Scott Ullrich
ccbbd5202e Use complete path to mtree 2005-05-19 17:23:43 +00:00
Colin Smith
7d894a898e Don't reboot after a firmware update - this is impractical with the new update structure. 2005-05-07 01:47:10 +00:00
Scott Ullrich
6a2b5f1cda Ensure proper /etc/hosts symlink after upgrade 2005-05-04 23:03:43 +00:00
Scott Ullrich
f21c836be9 Only chmod user, not groups. 2005-04-29 17:13:10 +00:00
Scott Ullrich
390c8e72eb Restore flags before unmounting /cf 2005-04-28 02:34:55 +00:00
Scott Ullrich
cd88352b6f run remove_chflags before upgrading.. they will be restored by the tgz 2005-04-27 23:18:50 +00:00
Colin Smith
9f0952aa76 (#15) Use rc.reboot when rebooting and don't try to remove auto_upgrade_in_progress. 2005-04-21 01:00:38 +00:00
Scott Ullrich
704ea91869 * Add remove_chflags function
* Add backup_chflags function
* Add restore_chflags function
* Backup and restore the chflags before updating
2005-04-20 18:11:25 +00:00
Scott Ullrich
6aada4eda1 * More debugging.
* Remove /tmp/auto_upgrade_in_progress after completion
2005-04-19 22:39:33 +00:00
Scott Ullrich
0d0a229428 Correct installed typo 2005-04-19 21:58:19 +00:00
Scott Ullrich
316d02b3f9 Add debugging lines. For some reason tar is not being invoked even though the if section is being invoked. 2005-04-19 21:48:36 +00:00
Colin Smith
0a5aabe633 Use /tmp/bdiff.log instead of /tmp/errors. 2005-04-18 01:49:22 +00:00
Colin Smith
f704d5b0da We had three cases doing the same thing :P 2005-04-18 01:43:41 +00:00
Colin Smith
89a5f4451f 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. 2005-04-18 01:40:17 +00:00
Bill Marquette
9f7369a124 quiet down upgrade system a little 2005-04-13 03:01:27 +00:00
Bill Marquette
164d969696 oops, not sure how I missed the 'v' - needed to create right output for egrep and nawk :) 2005-04-13 02:38:48 +00:00
Bill Marquette
03485a223b no need to create full path to output file, just dump it in /tmp/patched 2005-04-13 02:30:11 +00:00
Bill Marquette
3200f985e7 correctly ignore directories
compare md5's against the right variables
2005-04-12 23:33:59 +00:00
Bill Marquette
e7fb2f76af comments 2005-04-12 22:14:11 +00:00
Bill Marquette
2d4f9a65c6 and cleanup 2005-04-12 22:12:34 +00:00
Bill Marquette
b8575f61ce split out directories for sanities sake 2005-04-12 22:12:07 +00:00
Scott Ullrich
e607da6160 we're working in /tmp/patched. 2005-04-12 22:05:48 +00:00
Bill Marquette
2c505df5c5 change order of bspatch and don't cd to /tmp/patched, /tmp is fine 2005-04-12 22:03:21 +00:00
Bill Marquette
a739eb02db fix the tar, move bspatch where it belongs 2005-04-12 21:58:52 +00:00