summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-07 15:17:45 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-07 15:17:45 +0100
commit394b4ea7a59e4392d39c6e8154b21ae91b26492e (patch)
tree658d9ae9060b8e095ab8474dbdf28a99566ef665 /include
parentec5c954337b2e1ea50b0ace0f1086e48f20e7774 (diff)
inject.sh: rename copytb and preprom functions
make them shorter so they go on one line again Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/inject.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/inject.sh b/include/inject.sh
index dc4868ed..fe52e986 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -228,11 +228,10 @@ extract_sch5545ec()
# https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t480-type-20l5-20l6/20l5/solutions/ht508988
extract_tbfw()
{
- chkvars TBFW_size
- fx_ copy_tbfw x_ find "$appdir" -type f -name "TBT.bin"
+ chkvars TBFW_size; fx_ copytb x_ find "$appdir" -type f -name "TBT.bin"
}
-copy_tbfw()
+copytb()
{
[ -f "$1" ] && [ ! -L "$1" ] && x_ dd if=/dev/null of="$1" bs=1 \
seek=$TBFW_size && x_ mv "$1" "$_dest" && return 1; :
@@ -345,8 +344,7 @@ patch_release_roms()
done
if readkconfig; then
- fx_ preprom x_ find "$tmpromdir" -maxdepth 1 -type f \
- -name "*.rom"
+ fx_ prep x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
[ "$nukemode" != "nuke" ] || \
printf "Make sure you inserted vendor files: %s\n" \
"$vguide" > "$tmpromdir/README.md" || :
@@ -380,7 +378,7 @@ patch_release_roms()
"$archive" || err "'$archive' -> Can't overwrite - $dontflash"; :
}
-preprom()
+prep()
{
_xrom="$1"
_xromname="${1##*/}"