mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-03 11:44:11 +00:00
11 lines
207 B
Bash
11 lines
207 B
Bash
|
#!/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
|