Set boot slice correctly (reversed logic)

This commit is contained in:
Scott Ullrich 2009-07-05 23:51:33 -04:00
parent c5eb3a1783
commit 99623bd57a
2 changed files with 1 additions and 2 deletions

View File

@ -156,7 +156,6 @@ pfSenseNanoBSDupgrade)
/bin/mkdir -p /tmp/configbak
cp -p /conf/* /tmp/configbak 2>/dev/null
touch /conf/upgrade_log.txt
echo "" >> /conf/upgrade_log.txt
echo "Installing $IMG." >> /conf/upgrade_log.txt 2>&1

View File

@ -87,7 +87,7 @@ if($_POST['bootslice']) {
EOF;
for ($i = 0; $i < ob_get_level(); $i++) { ob_end_flush(); }
ob_implicit_flush(1);
if(strstr($_POST['bootslice'], "s1")) {
if(strstr($_POST['bootslice'], "s2")) {
$ASLICE="2";
$AOLDSLICE="1";
$ATOFLASH="{$BOOT_DRIVE}s{$SLICE}";