Created
February 18, 2026 02:03
-
-
Save e1ectr0cut1e/1b1b14af22319f4ce88275f7cfa8d080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/data/data/com.termux/files/usr/bin/sh | |
| TMP_DIR=$PREFIX/../tmp | |
| secontext=$(sudo ls -Zd "$PREFIX" | awk '{ print $1 }') | |
| owner=$(sudo stat -c '%U' "$PREFIX") | |
| group=$(sudo stat -c '%G' "$PREFIX") | |
| mkdir -p "$TMP_DIR" | |
| sudo chmod -R u=rwX,g=rwX,o= "$TMP_DIR" | |
| sudo chown -R "$owner:$group" "$TMP_DIR" | |
| sudo chcon -R "$secontext" "$TMP_DIR" | |
| sudo mount -t tmpfs tmpfs -o size=256M,mode=0700 "$TMP_DIR" | |
| sudo chown -R "$owner:$group" "$TMP_DIR" | |
| sudo chcon -R "$secontext" "$TMP_DIR" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment