mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set boot slice correctly (reversed logic)
This commit is contained in:
parent
c5eb3a1783
commit
99623bd57a
@ -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
|
||||
|
||||
@ -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}";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user