Skip to content

Commit

Permalink
Fixed /opt/tmp not being a tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
j005u committed Apr 29, 2023
1 parent fb71af7 commit 384ed8e
Show file tree
Hide file tree
Showing 2 changed files with 10 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.0
Version: 0.2.1
Maintainer: Joonas Trussmann [email protected]
Description: wtfos startup patches
Architecture: armv7-3.2
Expand Down
9 changes: 9 additions & 0 deletions wtfos-system/data/blackbox/wtfos/wtfos-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ fi
sleep 1
mkdir -p /bin
ln -sf /system/bin/sh /bin/sh

#set up /opt
if [[ ! -L /opt ]] ; then
ln -sf /blackbox/wtfos/opt /opt
fi
#make sure our /opt/tmp is a link to /tmp
if [ ! -L /opt/tmp ]; then
rm -rf /opt/tmp || true
ln -s /tmp /opt/tmp
fi

#remount / ro if necessesary
if [ "$remount_slash" = true ] ; then
/system/xbin/busybox mount -o ro,remount /
fi
Expand Down

0 comments on commit 384ed8e

Please sign in to comment.