summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfirmwares.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/firmwares.sh b/firmwares.sh
index fd32950..eb273eb 100755
--- a/firmwares.sh
+++ b/firmwares.sh
@@ -53,6 +53,8 @@ find_files () {
}
prepare_adb () {
+ echo -n "Using "
+ $ADB version
$ADB root
sleep 3
$ADB remount
@@ -61,15 +63,13 @@ prepare_adb () {
push_files () {
fw_file=$1
- cat "$DEVICE-fwinfo/$fw_file.txt" | while read file
+ cat "$DEVICE-fwinfo/$fw_file.txt" | while read file_string
do
- echo "Pushing ${file#*:}"
-
- path=$( dirname "${file#*:}" )
- $ADB shell mkdir -p "$path"
+ file="${file_string#*:}"
+ echo "Pushing $file"
path="$DEVICE-fw/"$( basename $file )
- $ADB push "$path" "${file#*:}"
+ $ADB push "$path" "$file"
done
}
@@ -151,6 +151,7 @@ case "$ACTION" in
*)
eval_fw_func find_files
prepare_adb
+ $ADB shell mkdir -p /system/vendor/firmware
eval_fw_func push_files
;;
esac