Skip to content

Commit c7de143

Browse files
committed
fixed translation files corruption issues and added fan-control to wtfos meta package
1 parent cb87110 commit c7de143

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
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.1.5
2+
Version: 0.1.6
33
Maintainer: Joonas Trussmann [email protected]
44
Description: wtfos startup patches
55
Architecture: armv7-3.2

wtfos-system/control/postinst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ if grep -q "#margerine" /system/bin/setup_usb_serial.sh; then
6363
restorecon /system/bin/setup_usb_serial.sh
6464
fi
6565

66+
if grep -q '"addtranslations" value="true"' /system/gui/etc/diskorc.xml; then
67+
#fix disk fillup caused by addtranslations=true in diskorc, even on real system just in case
68+
busybox sed -i 's/addtranslations" value="true"/addtranslations" value="false"/' /system/gui/etc/diskorc.xml
69+
#clean up after any previous mess
70+
sed -i '/.*===$/d' /system/gui/lang/translation.*
71+
fi
72+
6673

6774
#prepare our new image
6875
until mount | grep -q "/dev/loop";
@@ -97,4 +104,12 @@ fi
97104
sed -i '/#wtfos/,/#\/wtfos/d' /system/etc/mkshrc
98105
sed -i -e "/: place customisations above this line/ {r templates/mkshrc-tpl.sh" -e 'N}' /system/etc/mkshrc
99106

107+
108+
if grep -q '"addtranslations" value="true"' /system/gui/etc/diskorc.xml; then
109+
#fix disk fillup caused by addtranslations=true in diskorc
110+
busybox sed -i 's/addtranslations" value="true"/addtranslations" value="false"/' /system/gui/etc/diskorc.xml
111+
#clean up after any previous mess
112+
sed -i '/.*===$/d' /system/gui/lang/translation.*
113+
fi
114+
100115
sync

wtfos/control/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: wtfos
2-
Version: 0.3.0
2+
Version: 0.3.1
33
Maintainer: Joonas Trussmann [email protected]
44
Description: wtfos meta package
55
Architecture: armv7-3.2
6-
Depends: wtfos-system, wtfos-opkg-config, dinit
6+
Depends: wtfos-system, wtfos-opkg-config, fan-control, dinit

0 commit comments

Comments
 (0)