mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
5ee3219322
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
11 lines
207 B
Bash
Executable File
11 lines
207 B
Bash
Executable File
#!/bin/sh
|
|
set -e -o pipefail
|
|
. /etc/functions
|
|
. /tmp/config
|
|
|
|
if pnor "$2" -r HBI > /tmp/pnor.part 2>/dev/null; then
|
|
cbfs "$@" -o /tmp/pnor.part && pnor "$2" -w HBI < /tmp/pnor.part
|
|
else
|
|
cbfs "$@"
|
|
fi
|