summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfirmware/amd_seattle/runtest.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/amd_seattle/runtest.sh b/firmware/amd_seattle/runtest.sh
index bd79b30..c0ee38b 100755
--- a/firmware/amd_seattle/runtest.sh
+++ b/firmware/amd_seattle/runtest.sh
@@ -15,6 +15,13 @@ reboot_to_efi_shell() {
shutdown -r now
}
+enable_netboot() {
+ netboot=$(efibootmgr | grep 'Network Port00' | cut -c5-8)
+ bootoder=$(efibootmgr | grep 'BootOrder' | awk '{ print $2 }')
+ neworder=$(echo $netboot,$(echo $bootorder | sed -e "s/,$netboot//"))
+ efibootmgr -o $neworder
+}
+
if [ -n "$RSTRNT_REBOOTCOUNT" ]; then
if [ $RSTRNT_REBOOTCOUNT -eq 0 ]; then
echo "Setup Firmware install"
@@ -22,6 +29,7 @@ if [ -n "$RSTRNT_REBOOTCOUNT" ]; then
./upBIOS $BIOS
reboot_to_efi_shell
else
+ enable_netboot
rstrnt-report-result $RSTRNT_TASKNAME PASS
fi
fi