heads/initrd/bin/cbfs.sh
Thierry Laurion 8da5d5d723
Add dual support for real bash and busybox's bash(ash)
- modify bash to have it configured with -Os
2023-03-08 12:45:44 -05:00

13 lines
237 B
Bash
Executable File

#!/bin/bash
set -e -o pipefail
. /etc/functions
. /tmp/config
TRACE "Under /bin/cbfs.sh"
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