diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 21:49:39 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-05 21:49:39 -0400 |
commit | dce5cc7cdcf0b44310c5e11dd81763ec92a699af (patch) | |
tree | f4d81a7ebe3a59454ec02d47efc2437d39a0ce17 /usr | |
parent | be6e1e8ad55b633770d229c1fec2b4716cfbaba2 (diff) | |
download | pfsense-dce5cc7cdcf0b44310c5e11dd81763ec92a699af.zip pfsense-dce5cc7cdcf0b44310c5e11dd81763ec92a699af.tar.gz |
fsck the fs after duplication. Add other misc upgrade log files.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_nanobsd.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php index 95f4d96..e57ad5c 100755 --- a/usr/local/www/diag_nanobsd.php +++ b/usr/local/www/diag_nanobsd.php @@ -114,6 +114,7 @@ EOF; exec("/bin/dd if=/dev/{$BOOTFLASH} of=/dev/{$TOFLASH} bs=64k"); exec("/sbin/tunefs -L {$GLABEL_SLICE} /dev/{$COMPLETE_PATH}"); exec("/bin/mkdir /tmp/{$GLABEL_SLICE}"); + exec("/sbin/fsck_ufs -y /dev/{$COMPLETE_PATH}"); exec("/sbin/mount /dev/ufs/{$GLABEL_SLICE} /tmp/{$GLABEL_SLICE}"); exec("/bin/cp /etc/fstab /tmp/{$GLABEL_SLICE}/etc/fstab"); $status = exec("sed -i \"\" \"s/pfsense{$OLD_UFS_ID}/pfsense{$UFS_ID}/g\" /tmp/{$GLABEL_SLICE}/etc/fstab"); @@ -208,6 +209,10 @@ if ($savemsg) if($_POST['viewupgradelog']) { echo "<textarea name='log' cols='80' rows='40'>"; echo file_get_contents("/conf/upgrade_log.txt"); + echo "\nFile list:\n" + echo file_get_contents("/conf/file_upgrade_log.txt"); + echo "\nMisc log:\n" + echo file_get_contents("/conf/firmware_update_misc.log"); echo "</textarea>"; } else { echo "<form action='diag_nanobsd.php' method='post' name='iform'>"; |