Commit a376de27 authored by fuyanbin's avatar fuyanbin
Browse files

兼容 /system/bin/androidrom 标识文件

parent 7b1a1275
...@@ -9,7 +9,7 @@ SMALLP_PATH="$CACHE_DIR/smallp/" ...@@ -9,7 +9,7 @@ SMALLP_PATH="$CACHE_DIR/smallp/"
mkdir -p "$CACHE_DIR/local/tmp/bin" mkdir -p "$CACHE_DIR/local/tmp/bin"
export PATH="$PATH:$CACHE_DIR/local/tmp/bin" export PATH="$PATH:$CACHE_DIR/local/tmp/bin"
if [ -e /system/.androidrom ] || [ -e /system/androidrom ] if [ -e /system/.androidrom ] || [ -e /system/bin/androidrom ]
then then
BUSYBOXY="/system/bin/busybox-arm" BUSYBOXY="/system/bin/busybox-arm"
else else
...@@ -54,13 +54,21 @@ install() { ...@@ -54,13 +54,21 @@ install() {
else else
unzip_go -file /system/bin/hugep-all.zip -dst "$SMALLP_PATH" unzip_go -file /system/bin/hugep-all.zip -dst "$SMALLP_PATH"
fi fi
if [ -f /system/bin/androidrom ] && [ -f "${SMALLP_PATH}/vendor.yaml" ]
then
aio -m dec -i "${SMALLP_PATH}/vendor.yaml" -o "${SMALLP_PATH}/vendor.yaml.dec"
echo ' buildtool: miktool' >> "${SMALLP_PATH}/vendor.yaml.dec"
aio -m enc -i "${SMALLP_PATH}/vendor.yaml.dec" -o "${SMALLP_PATH}/vendor.yaml"
rm -f "${SMALLP_PATH}/vendor.yaml.dec"
fi
else else
return 1 return 1
fi fi
} }
need_intall() { need_intall() {
if [ -e /system/.androidrom ] || [ -e /system/androidrom ] if [ -e /system/.androidrom ] || [ -e /system/bin/androidrom ]
then then
if [ ! -d "$SMALLP_PATH" ] if [ ! -d "$SMALLP_PATH" ]
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