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 ...@@ -33,16 +33,24 @@ if [ -e /system/.androidrom ] && [ ! -d /data/smallp ];then
if [ -f /system/bin/hugep-all.zip ] if [ -f /system/bin/hugep-all.zip ]
then then
mkdir /data/smallp mkdir /data/smallp
cd /data/smallp if [ -f /system/bin/unzip ]
cp -fr /system/bin/hugep-all.zip /data/smallp then
unzip hugep-all.zip unzip /system/bin/hugep-all.zip -d /data/smallp
touch unzip.done unzip /system/bin/manager_bin_file.zip -d /data/smallp/
rm hugep-all.zip else
unzip_go -file /system/bin/manager_bin_file.zip -dst /data/smallp/
fi
elif [ -d /system/smallp ] elif [ -d /system/smallp ]
then then
cp -rf /system/smallp /data/ cp -rf /system/smallp /data/
fi 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 ] if [ -e /system/bin/hugep-start.sh ]
then 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