summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-05 21:57:33 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-05 21:57:33 -0400
commite3f0f84c5d9747782c63f80d141ba5268bd19335 (patch)
tree29f3d3fd00f7cd8de52e58980e0fff7dddc2b58d /usr/local/www/diag_nanobsd.php
parent935fb53e5e8078154ef0c9f4e79e7911a76f9ec4 (diff)
downloadpfsense-e3f0f84c5d9747782c63f80d141ba5268bd19335.zip
pfsense-e3f0f84c5d9747782c63f80d141ba5268bd19335.tar.gz
Correctly set fstab
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/local/www/diag_nanobsd.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index 3b311bb..0e2f4b1 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -110,7 +110,7 @@ EOF;
exec("/sbin/fsck_ufs -y /dev/{$ACOMPLETE_PATH}");
exec("/sbin/mount /dev/ufs/{$AGLABEL_SLICE} /tmp/{$AGLABEL_SLICE}");
exec("/bin/cp /etc/fstab /tmp/{$AGLABEL_SLICE}/etc/fstab");
- $status = exec("sed -i \"\" \"s/pfsense{$AOLD_UFS_ID}/pfsense{$AUFS_ID}/g\" /tmp/{$AGLABEL_SLICE}/etc/fstab");
+ $status = exec("sed -i \"\" \"s/pfsense{$OLD_UFS_ID}/pfsense{$UFS_ID}/g\" /tmp/{$AGLABEL_SLICE}/etc/fstab");
if($status) {
file_notice("UpgradeFailure","Something went wrong when trying to update the fstab entry. Aborting upgrade.");
exec("/sbin/umount /tmp/{$AGLABEL_SLICE}");
OpenPOWER on IntegriCloud