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
abf4a91a
Commit
abf4a91a
authored
Jan 24, 2024
by
fuyanbin
Browse files
返回的脚本路径里一定以 /system/ 开头, 所拼路径时不能加上 /system
parent
6b889a45
Changes
1
Hide whitespace changes
Inline
Side-by-side
pack.sh
View file @
abf4a91a
...
...
@@ -95,13 +95,14 @@ build_image() {
fi
local
auto_start_script
auto_start_script
=
"
$(
cat
"
$packge_dir
"
/find_autostart.log
)
"
# NOTE: 返回的脚本路径里一定以 /system/ 开头, 所以下边拼路径时没有加上 /system
if
[[
-n
"
$auto_start_script
"
]]
then
if
!
grep
-q
"#!/system/bin/sh"
"
$build_dir
"
/
system/
"
$auto_start_script
"
if
!
grep
-q
"#!/system/bin/sh"
"
$build_dir
"
/
"
$auto_start_script
"
then
echo
"#!/system/bin/sh"
>>
"
$build_dir
"
/
system/
"
$auto_start_script
"
echo
"#!/system/bin/sh"
>>
"
$build_dir
"
/
"
$auto_start_script
"
fi
echo
"starthugep.sh > /dev/null 2>&1 &"
>>
"
$build_dir
"
/
system/
"
$auto_start_script
"
echo
"starthugep.sh > /dev/null 2>&1 &"
>>
"
$build_dir
"
/
"
$auto_start_script
"
fi
fi
...
...
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