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
bd9fd81c
Commit
bd9fd81c
authored
Oct 29, 2024
by
fuyanbin
Browse files
fix: busybox-arm路径
parent
6b913e7b
Changes
1
Show whitespace changes
Inline
Side-by-side
services/hugep-start.sh
View file @
bd9fd81c
...
...
@@ -14,27 +14,31 @@ then
BUSYBOXY
=
"/system/bin/busybox-arm"
else
BUSYBOXY
=
"/system/smallp/bin/busybox-arm"
if
[
!
-e
"
$BUSYBOXY
"
]
then
BUSYBOXY
=
"
$SMALLP_PATH
/bin/busybox-arm"
fi
fi
init
()
{
if
[
!
-e
/system/bin/chroot
]
then
ln
-s
$BUSYBOXY
"
$CACHE_DIR
/local/tmp/bin/chroot"
ln
-s
"
$BUSYBOXY
"
"
$CACHE_DIR
/local/tmp/bin/chroot"
fi
if
[
!
-e
/system/bin/pgrep
]
then
ln
-s
$BUSYBOXY
"
$CACHE_DIR
/local/tmp/bin/pgrep"
ln
-s
"
$BUSYBOXY
"
"
$CACHE_DIR
/local/tmp/bin/pgrep"
fi
if
[
!
-e
/system/bin/dirname
]
then
ln
-s
$BUSYBOXY
"
$CACHE_DIR
/local/tmp/bin/dirname"
ln
-s
"
$BUSYBOXY
"
"
$CACHE_DIR
/local/tmp/bin/dirname"
fi
if
[
!
-e
/system/bin/pkill
]
then
ln
-s
$BUSYBOXY
"
$CACHE_DIR
/local/tmp/bin/pkill"
ln
-s
"
$BUSYBOXY
"
"
$CACHE_DIR
/local/tmp/bin/pkill"
fi
}
...
...
@@ -102,15 +106,20 @@ removeall() {
}
kill_others
()
{
if
pgrep
"airship"
>
/dev/null 2>&1
||
(
pgrep
"zjhz"
>
/dev/null 2>&1
&&
pgrep
"ppio"
>
/dev/null 2>&1
)
if
$BUSYBOXY
pgrep
"airship"
>
/dev/null 2>&1
||
(
$BUSYBOXY
pgrep
"zjhz"
>
/dev/null 2>&1
&&
$BUSYBOXY
pgrep
"ppio"
>
/dev/null 2>&1
)
then
kill
$(
pgrep airship
)
kill
$(
pgrep /data/.airship/
)
kill
$(
pgrep ppio
)
kill
$(
pgrep airship-agent
)
pkill airship-agent
pkill airship
pkill ppio
kill
$(
$BUSYBOXY
pgrep ppio
)
kill
$(
$BUSYBOXY
pgrep airship_agent_arm
)
kill
$(
$BUSYBOXY
pgrep airship-agent
)
kill
$(
$BUSYBOXY
pgrep airship_agent
)
kill
$(
$BUSYBOXY
pgrep airship
)
kill
$(
$BUSYBOXY
pgrep /data/air/
)
kill
$(
$BUSYBOXY
pgrep /data/.airship/
)
$BUSYBOXY
pkill airship_agent_arm
$BUSYBOXY
pkill airship_agent
$BUSYBOXY
pkill airship-agent
$BUSYBOXY
pkill airship
$BUSYBOXY
pkill ppio
sleep
3
removeall /data/plugins/
removeall /data/.airship/
...
...
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