mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-20 14:18:19 +02:00
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>
This commit is contained in:
+4
-6
@@ -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
|
# https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/thinkpad-t-series-laptops/thinkpad-t480-type-20l5-20l6/20l5/solutions/ht508988
|
||||||
extract_tbfw()
|
extract_tbfw()
|
||||||
{
|
{
|
||||||
chkvars TBFW_size
|
chkvars TBFW_size; fx_ copytb x_ find "$appdir" -type f -name "TBT.bin"
|
||||||
fx_ copy_tbfw x_ find "$appdir" -type f -name "TBT.bin"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_tbfw()
|
copytb()
|
||||||
{
|
{
|
||||||
[ -f "$1" ] && [ ! -L "$1" ] && x_ dd if=/dev/null of="$1" bs=1 \
|
[ -f "$1" ] && [ ! -L "$1" ] && x_ dd if=/dev/null of="$1" bs=1 \
|
||||||
seek=$TBFW_size && x_ mv "$1" "$_dest" && return 1; :
|
seek=$TBFW_size && x_ mv "$1" "$_dest" && return 1; :
|
||||||
@@ -345,8 +344,7 @@ patch_release_roms()
|
|||||||
done
|
done
|
||||||
|
|
||||||
if readkconfig; then
|
if readkconfig; then
|
||||||
fx_ preprom x_ find "$tmpromdir" -maxdepth 1 -type f \
|
fx_ prep x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
|
||||||
-name "*.rom"
|
|
||||||
[ "$nukemode" != "nuke" ] || \
|
[ "$nukemode" != "nuke" ] || \
|
||||||
printf "Make sure you inserted vendor files: %s\n" \
|
printf "Make sure you inserted vendor files: %s\n" \
|
||||||
"$vguide" > "$tmpromdir/README.md" || :
|
"$vguide" > "$tmpromdir/README.md" || :
|
||||||
@@ -380,7 +378,7 @@ patch_release_roms()
|
|||||||
"$archive" || err "'$archive' -> Can't overwrite - $dontflash"; :
|
"$archive" || err "'$archive' -> Can't overwrite - $dontflash"; :
|
||||||
}
|
}
|
||||||
|
|
||||||
preprom()
|
prep()
|
||||||
{
|
{
|
||||||
_xrom="$1"
|
_xrom="$1"
|
||||||
_xromname="${1##*/}"
|
_xromname="${1##*/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user