Commit abf4a91a authored by fuyanbin's avatar fuyanbin
Browse files

返回的脚本路径里一定以 /system/ 开头, 所拼路径时不能加上 /system

parent 6b889a45
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment