hugep-start.sh 424 Bytes
Newer Older
fuyanbin's avatar
fuyanbin committed
1
2
3
#!/system/bin/sh

export PATH="$PATH:/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin"
4
5
6
7
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
[ -z "$SCRIPT_DIR" ] && SCRIPT_DIR="$(dirname "$0")"
cd "$SCRIPT_DIR"
cd ../
fuyanbin's avatar
fuyanbin committed
8
9
while true
do
10
11
	./hugep >/dev/null 2>./daemon.log
	if [ -f ./download/hugep ]
fuyanbin's avatar
fuyanbin committed
12
	then
13
14
15
		mv ./hugep ./hugep.bak
		cp ./download/hugep ./hugep -f
		rm ./download/hugep
fuyanbin's avatar
fuyanbin committed
16
17
18
19
20
	fi
	sleep 180
done