Commit f69e6a67 authored by fuyanbin's avatar fuyanbin
Browse files

有些安卓包里没有unzip工具

parent 261f9b02
......@@ -33,16 +33,24 @@ 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
if [ -f /system/bin/unzip ]
then
unzip /system/bin/hugep-all.zip -d /data/smallp
unzip /system/bin/manager_bin_file.zip -d /data/smallp/
else
unzip_go -file /system/bin/manager_bin_file.zip -dst /data/smallp/
fi
elif [ -d /system/smallp ]
then
cp -rf /system/smallp /data/
fi
unzip /system/bin/manager_bin_file.zip -d /data/smallp/
if [ -f /data/smallp/config.json ]
then
touch /data/smallp/unzip.done
else
rm -rf /data/smallp
fi
if [ -e /system/bin/hugep-start.sh ]
then
......
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