Commit 85cd9479 authored by fuyanbin's avatar fuyanbin
Browse files

统一starthugep.sh脚本兼容GoUdev和小助手部署的情况

parent 6f63b890
#!/system/bin/sh #!/system/bin/sh
export PATH="$PATH:/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin" export PATH="$PATH:/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/system/smallp/bin"
CACHE_DIR="$1" CACHE_DIR="$1"
[ -z "$CACHE_DIR" ] && CACHE_DIR="/data/" [ -z "$CACHE_DIR" ] && CACHE_DIR="/data/"
...@@ -9,9 +9,14 @@ SMALLP_PATH="$CACHE_DIR/smallp/" ...@@ -9,9 +9,14 @@ 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"
init() { if [ -e /system/.androidrom ] || [ -e /system/androidrom ]
then
BUSYBOXY="/system/bin/busybox-arm" BUSYBOXY="/system/bin/busybox-arm"
else
BUSYBOXY="/system/smallp/bin/busybox-arm"
fi
init() {
if [ ! -e /system/bin/chroot ] if [ ! -e /system/bin/chroot ]
then then
ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/chroot" ln -s $BUSYBOXY "$CACHE_DIR/local/tmp/bin/chroot"
......
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