uboot: install sd/usb: convert double condition in a simpler single condition

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2021-09-28 12:15:20 +02:00
parent f3ae964d10
commit fa3028a17e
10 changed files with 12 additions and 12 deletions

View File

@ -243,7 +243,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -246,7 +246,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -254,7 +254,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -257,7 +257,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -236,7 +236,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
echo \"\"; echo \"\";
if test ! -n \$\{ubisysvols\} || test \"\$\{ubisysvols\}\" = no; then if test \"\$\{ubisysvols\}\" != yes; then
nand erase.part update; nand erase.part update;
fi; fi;
setenv boot_recovery yes; setenv boot_recovery yes;
@ -246,7 +246,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -237,7 +237,7 @@ setenv bootcmd "
exit; exit;
fi; fi;
echo \"\"; echo \"\";
if test ! -n \$\{ubisysvols\} || test \"\$\{ubisysvols\}\" = no; then if test \"\$\{ubisysvols\}\" != yes; then
nand erase.part update; nand erase.part update;
fi; fi;
setenv boot_recovery yes; setenv boot_recovery yes;
@ -247,7 +247,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -221,7 +221,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -222,7 +222,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -292,7 +292,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";

View File

@ -295,7 +295,7 @@ setenv bootcmd "
echo \"\"; echo \"\";
echo \"\"; echo \"\";
echo \">> Firmware installation complete.\"; echo \">> Firmware installation complete.\";
if test ! -n \$\{dualboot\} || test \$\{dualboot\} = no; then if test \"\$\{dualboot\}\" != yes; then
echo \"Rebooting into recovery mode for final deployment.\"; echo \"Rebooting into recovery mode for final deployment.\";
fi; fi;
echo \"\"; echo \"\";