Skip to content

Instantly share code, notes, and snippets.

@simons-public
Last active August 20, 2022 01:25
Show Gist options
  • Save simons-public/07dd62741d1324e2cb3d0d2a837af3be to your computer and use it in GitHub Desktop.
Save simons-public/07dd62741d1324e2cb3d0d2a837af3be to your computer and use it in GitHub Desktop.
Steam Deck toggle rw/ro
#!/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