Skip to content

Commit

Permalink
Fixed memory pressure issues under extremely high bitrate DVR situati…
Browse files Browse the repository at this point in the history
…ons by disabling the unneeded sdrs_log service
  • Loading branch information
j005u committed Jun 10, 2023
1 parent 384ed8e commit 55986d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wtfos-system/control/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: wtfos-system
Version: 0.2.1
Version: 0.2.2
Maintainer: Joonas Trussmann [email protected]
Description: wtfos startup patches
Architecture: armv7-3.2
Expand Down
4 changes: 4 additions & 0 deletions wtfos-system/control/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ prepare_new_system () {
cp ${filename} ${filename}.orig
fi
sed -i '/# judge blackbox is formated/,/# judge cache partition/c\# judge cache partition is formated or not\. if not, format it\.' ${filename}
if [ "${filename}" == "/system/bin/start_dji_system_wm150pro.sh" ]; then
#we do this to work around memory pressure issues because sdrs_log is largely useless anyway
busybox sed -i 's/setprop dji.sdrs_log_service 1/setprop dji.sdrs_log_service 0/g' ${filename}
fi
restorecon ${filename}
done

Expand Down

0 comments on commit 55986d7

Please sign in to comment.