Commit b13164ea authored by fuyanbin's avatar fuyanbin
Browse files

cleanup log

parent abf4a91a
......@@ -89,9 +89,9 @@ build_image() {
popd
cp "$boot_dir"/init.rc "$packge_dir"/init.rc
rm -rf "$boot_dir"
if ! find_autostart -script_name preinstall.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log
if ! find_autostart -script_name preinstall.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log 2>/dev/null
then
find_autostart -script_name recovery.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log
find_autostart -script_name recovery.sh -initrc "$packge_dir"/init.rc > "$packge_dir"/find_autostart.log 2>/dev/null
fi
local auto_start_script
auto_start_script="$(cat "$packge_dir"/find_autostart.log)"
......
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