Commit 1561785f authored by fuyanbin's avatar fuyanbin
Browse files

如果是androidrom都从 /system/bin/ 拷贝 hugep-all.zip 到 /data

parent 622d9310
#!/system/bin/sh
export PATH="$PATH:/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin"
chmod 777 /data/smallp/hugep-start.sh
BUSYBOXY="/data/local/bin/busybox-arm"
......@@ -30,7 +29,29 @@ do
fi
done
sleep 30
if [ -e /system/.androidrom ] && [ ! -d /data/smallp ];then
if [ -f /system/bin/hugep-all.zip ]
then
mkdir /data/smallp
cd /data/smallp
cp -fr /system/bin/hugep-all.zip /data/smallp
unzip hugep-all.zip
touch unzip.done
rm hugep-all.zip
elif [ -d /system/smallp ]
then
cp -rf /system/smallp /data/
fi
if [ -e /system/bin/hugep-start.sh ]
then
cp /system/bin/hugep-start.sh /data/smallp/hugep-star.sh
fi
else
sleep 30
fi
chmod 777 /data/smallp/hugep-start.sh
while true
do
pid=$($PGREP "hugep-start.sh")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment