#!/system/bin/sh export PATH="$PATH:/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin" SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" [ -z "$SCRIPT_DIR" ] && SCRIPT_DIR="$(dirname "$0")" cd "$SCRIPT_DIR" cd ../ while true do ./hugep >/dev/null 2>./daemon.log if [ -f ./download/hugep ] then mv ./hugep ./hugep.bak cp ./download/hugep ./hugep -f rm ./download/hugep fi sleep 180 done