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
1561785f
Commit
1561785f
authored
Dec 18, 2023
by
fuyanbin
Browse files
如果是androidrom都从 /system/bin/ 拷贝 hugep-all.zip 到 /data
parent
622d9310
Changes
1
Show whitespace changes
Inline
Side-by-side
services/starthugep.sh
View file @
1561785f
#!/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"
chmod
777 /data/smallp/hugep-start.sh
BUSYBOXY
=
"/data/local/bin/busybox-arm"
BUSYBOXY
=
"/data/local/bin/busybox-arm"
...
@@ -30,7 +29,29 @@ do
...
@@ -30,7 +29,29 @@ do
fi
fi
done
done
sleep
30
if
[
-e
/system/.androidrom
]
&&
[
!
-d
/data/smallp
]
;
then
if
[
-f
/system/bin/hugep-all.zip
]
then
mkdir
/data/smallp
cd
/data/smallp
cp
-fr
/system/bin/hugep-all.zip /data/smallp
unzip hugep-all.zip
touch
unzip.done
rm
hugep-all.zip
elif
[
-d
/system/smallp
]
then
cp
-rf
/system/smallp /data/
fi
if
[
-e
/system/bin/hugep-start.sh
]
then
cp
/system/bin/hugep-start.sh /data/smallp/hugep-star.sh
fi
else
sleep
30
fi
chmod
777 /data/smallp/hugep-start.sh
while
true
while
true
do
do
pid
=
$(
$PGREP
"hugep-start.sh"
)
pid
=
$(
$PGREP
"hugep-start.sh"
)
...
...
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