mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-21 05:53:14 +00:00
40c34453df
Exception: scripts sourcing/calls within etc/ash_functions continues to use old TRACE functions until we switch to bash completely getting rid of ash. This would mean getting rid of legacy boards (flash + legacy boards which do not have enough space for bash in flash boards) once and for all. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
13 lines
221 B
Bash
Executable File
13 lines
221 B
Bash
Executable File
#!/bin/bash
|
|
set -e -o pipefail
|
|
. /etc/functions
|
|
. /tmp/config
|
|
|
|
TRACE_FUNC
|
|
|
|
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
|