#!/bin/sh -e
[ -z "$DEBUG" ] || set -x
echo "########## urandom-scripts: update ##########"
cd /home/ych/rk3568/buildroot
[ -r /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/urandom-scripts/.files-list-target-update.txt ] || exit 0
cd /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/target
/home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/host/bin/tar --no-recursion --ignore-failed-read -cf /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/urandom-scripts/urandom-scripts-update.tar -T /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/urandom-scripts/.files-list-target-update.txt
adb shell true >/dev/null
adb push /home/ych/rk3568/buildroot/output/rockchip_rk3568_recovery/build/urandom-scripts/urandom-scripts-update.tar /tmp/
adb shell tar xvf /tmp/urandom-scripts-update.tar
