Skip to content

Commit 384ed8e

Browse files
committed
Fixed /opt/tmp not being a tmpfs
1 parent fb71af7 commit 384ed8e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
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.0
2+
Version: 0.2.1
33
Maintainer: Joonas Trussmann [email protected]
44
Description: wtfos startup patches
55
Architecture: armv7-3.2

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ fi
1616
sleep 1
1717
mkdir -p /bin
1818
ln -sf /system/bin/sh /bin/sh
19+
20+
#set up /opt
1921
if [[ ! -L /opt ]] ; then
2022
ln -sf /blackbox/wtfos/opt /opt
2123
fi
24+
#make sure our /opt/tmp is a link to /tmp
25+
if [ ! -L /opt/tmp ]; then
26+
rm -rf /opt/tmp || true
27+
ln -s /tmp /opt/tmp
28+
fi
29+
30+
#remount / ro if necessesary
2231
if [ "$remount_slash" = true ] ; then
2332
/system/xbin/busybox mount -o ro,remount /
2433
fi

0 commit comments

Comments
 (0)