starthugep.sh 343 Bytes
Newer Older
fuyanbin's avatar
fuyanbin committed
1
#!/system/bin/sh
牛文敏's avatar
牛文敏 committed
2
3
4
if [ ! -d /data/smallp ];then
	cp -rf /system/smallp /data/
fi
fuyanbin's avatar
fuyanbin committed
5
6
7
8
9
10
11
12
13
14
15
chmod 777 /data/smallp/hugep-start.sh
/data/smallp/hugep-start.sh  > /dev/null 2>&1 &

while true
do
        pid=$(pgrep "hugep-start.sh")
        if [ -z "$pid" ]; then
            /data/smallp/hugep-start.sh  > /dev/null 2>&1 &
        fi
        sleep 30
done