summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-26 15:16:04 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-26 15:16:04 -0400
commit99760ae608f85359c4e18ce41189525f78ee2d05 (patch)
tree859a86639f9277737fce23b451ce34e784ba770b
parentcfa379bdabc8ffe84ed629f3b1e0e37c5b28947e (diff)
downloadpfsense-99760ae608f85359c4e18ce41189525f78ee2d05.zip
pfsense-99760ae608f85359c4e18ce41189525f78ee2d05.tar.gz
Out image to the slice and not a
-rwxr-xr-xetc/rc.firmware4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index d0965fa..69d95d3 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -180,11 +180,11 @@ pfSenseNanoBSDupgrade)
BOOT_DRIVE=`/sbin/glabel list | /usr/bin/grep -B2 ufs/pfsense1 | /usr/bin/head -n 1 | /usr/bin/cut -f3 -d' ' | /usr/bin/cut -d's' -f1`
# test the slice. if we are on slice 1 we need to flash 2 and vica versa
if [ `echo $REAL_BOOT_DEVICE | /usr/bin/grep "s1"` ]; then
- TOFLASH="${BOOT_DRIVE}s2a"
SLICE="2"
+ TOFLASH="${BOOT_DRIVE}s${SLICE}"
else
- TOFLASH="${BOOT_DRIVE}s1a"
SLICE="1"
+ TOFLASH="${BOOT_DRIVE}s${SLICE}"
fi
# Remove TOFLASH and get ready for new flash image
OpenPOWER on IntegriCloud