Skip to content

Commit 97d226c

Browse files
committed
Reverted sdrs_log disable, disabled dji_upgrade, dji_ftpd and made other small optimizations instead
1 parent 08bdcc0 commit 97d226c

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

wtfos-system/control/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: wtfos-system
2-
Version: 0.2.4
2+
Version: 0.2.5
33
Maintainer: Joonas Trussmann [email protected]
44
Description: wtfos startup patches
55
Architecture: armv7-3.2

wtfos-system/control/postinst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,22 @@ prepare_new_system () {
7979
cp ${filename} ${filename}.orig
8080
fi
8181
sed -i '/# judge blackbox is formated/,/# judge cache partition/c\# judge cache partition is formated or not\. if not, format it\.' ${filename}
82+
if grep -q "dji.sdrs_log_service 0" ${filename}; then
83+
#revert sdrs_log kill if it's in place. causes new problems.
84+
busybox sed -i 's/setprop dji.sdrs_log_service 0/setprop dji.sdrs_log_service 1/g' ${filename}
85+
fi
8286
if [ "${filename}" == "/system/bin/start_dji_system_wm150pro.sh" ] || [ "${filename}" == "/system/bin/start_dji_system.sh" ]; then
83-
#we do this to work around memory pressure issues because sdrs_log is largely useless anyway
84-
busybox sed -i 's/setprop dji.sdrs_log_service 1/setprop dji.sdrs_log_service 0/g' ${filename}
87+
#we do this to conserve memory
88+
busybox sed -i 's/setprop dji.ftpd_service 1/setprop dji.ftpd_service 0/g' ${filename}
89+
busybox sed -i 's/setprop dji.upgrade_service 1/setprop dji.upgrade_service 0/g' ${filename}
90+
sed -i '/# dump system\/upgrade log to a special file/,/# do kmsg collection/c\# do kmsg collection' ${filename}
8591
fi
8692
restorecon ${filename}
8793
done
94+
95+
#disable dsp logging to save memory
96+
#busybox sed -i 's/emmc:on/emmc:off/g' /system/etc/sdrs_offline_log.cfg
97+
#off until we've sorted the rtos crash questions
8898

8999
#make our mkshrc.d work
90100
if [[ ! -f /system/etc/mkshrc.orig ]]

wtfos-system/data/blackbox/wtfos/wtfos-init.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/system/bin/sh
22
alias logme="tee /dev/kmsg | tee -a /blackbox/wtfos.log"
33

4-
if [ "$1" != "startup" ]; then
5-
echo "you probably don't want to run me by hand" | logme
6-
exit 2
7-
fi
8-
94
remount_slash=false
105

116
echo "wtfos: entware starting"
@@ -45,7 +40,7 @@ echo "wtfos: ran dji startup script" | logme
4540
#but otherwise we have a bad time for some reason with dinit installed?
4641
#the dinit start script spawns with &
4742
#needs investigation
48-
/opt/etc/init.d/rc.unslung start 2>&1 | logme &
43+
. /opt/etc/init.d/rc.unslung start 2>&1 >> /blackbox/wtfos.log &
4944
echo "wtfos: started entware unslung" | logme
5045

5146
exit 0

0 commit comments

Comments
 (0)