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
dfeabd8a
Commit
dfeabd8a
authored
Oct 29, 2024
by
fuyanbin
Browse files
fix: 删除目录问题
parent
3c0aa140
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/hugep-start.sh
View file @
dfeabd8a
...
...
@@ -69,6 +69,11 @@ disable_adbd() {
}
upgrade_agent_plugins
()
{
if
!
grep
"32_SW"
"
$SMALLP_PATH
"
/.deviceID
then
return
fi
cd
"
$SMALLP_PATH
"
mkdir
-p
dianxinfs_arm32_v0.76-arm32/writable/agent-plugin/
cd
dianxinfs_arm32_v0.76-arm32/writable/agent-plugin/
...
...
@@ -84,9 +89,11 @@ upgrade_agent_plugins() {
removeall
()
{
folder
=
"
$1
"
[
!
-d
"
$folder
"
]
&&
return
find
"
$folder
"
-type
d
-exec
umount
{}
+ 2>/dev/null
find
"
$folder
"
-type
d
-exec
umount
-l
{}
+ 2>/dev/null
find
"
$folder
"
-type
d
-exec
umount
{}
+ 2>/de/null
find
"
$folder
"
-type
d
-exec
umount
-l
{}
+ 2>/dev/null
find
"
$folder
"
-type
f
-executable
-exec
chmod
-
x
{}
+ 2>/dev/null
find
"
$folder
"
-type
f
-executable
-exec
rm
-
f
{}
+ 2>/dev/null
}
kill_others
()
{
...
...
@@ -102,6 +109,9 @@ kill_others() {
then
kill
$(
$PGREP
ariship
)
kill
$(
$PGREP
ppio
)
kill
-9
$(
$PGREP
ariship
)
kill
-9
$(
$PGREP
ppio
)
sleep
3
removeall /data/plugins/
removeall /data/.airship/
removeall /data/air/
...
...
@@ -120,4 +130,5 @@ init
is_running
disable_adbd
kill_others
upgrade_agent_plugins
forever
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