Last active
August 20, 2022 01:25
-
-
Save simons-public/07dd62741d1324e2cb3d0d2a837af3be to your computer and use it in GitHub Desktop.
Steam Deck toggle rw/ro
This file contains 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
#!/bin/sh | |
if btrfs property get -ts / ro | grep -q true; then | |
#sudo btrfs property set -ts / ro false | |
sudo steamos-readonly disable | |
echo "Filesystem set to read/write" | |
else | |
#sudo btrfs property set -ts / ro true | |
sudo steamos-readonly enable | |
echo "Filesystem set to read only" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment