| #!/bin/bash | |
| if ! source /usr/libexec/bios-common.sh ; then | |
| echo "Error loading the bios-common.sh library" | |
| exit 2 | |
| fi | |
| IMAGE_FILE="/tmp/bios-image" | |
| update_type="$1" | |
| echo "Verify bios image..." | |
| if [ ! -e "$IMAGE_FILE" ]; | |
| then | |
| echo "bios image verify fail. no image." | |
| exit 1 | |
| fi | |
| bios_stage "$update_type" "$IMAGE_FILE" || exit $? | |
| echo "bios image verify ok." |