Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
85cd9479
Commit
85cd9479
authored
Sep 13, 2024
by
fuyanbin
Browse files
统一starthugep.sh脚本兼容GoUdev和小助手部署的情况
parent
6f63b890
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/starthugep.sh
View file @
85cd9479
#!/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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment