Skip to content

Instantly share code, notes, and snippets.

@mehdichaouch
Created October 14, 2022 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehdichaouch/c12526fece9ed3a63e00574041324a3b to your computer and use it in GitHub Desktop.
Save mehdichaouch/c12526fece9ed3a63e00574041324a3b to your computer and use it in GitHub Desktop.
🎮 Batocera command to reboot and fix files/folders permissions
#!/bin/bash
#alias bato_reboot="ssh root@batocera.local -t 'reboot'"
ssh root@batocera.local -t 'reboot'
#alias bato_fix_perms="sudo chown -R root:root . && sudo find . -type f -exec chmod -c 644 {} \; && sudo find . -type d -exec chmod -c 755 {} \;"
# to run from SHARE/roms folder
sudo chown -R root:root . && sudo find . -type f -exec chmod -c 644 {} \; && sudo find . -type d -exec chmod -c 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment