#!/usr/bin/env bash # This file is part of The RetroPie Project # # The RetroPie Project is the legal property of its developers, whose names are # too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source. # # See the LICENSE.md file at the top-level directory of this distribution and # at https://raw.githubusercontent.com/RetroPie/RetroPie-Setup/master/LICENSE.md # rp_module_id="resetromdirs" rp_module_desc="Reset ownership/permissions of RetroPie/roms directory" rp_module_section="config" function gui_resetromdirs() { printHeading "Resetting $romdir ownershop/permissions" mkUserDir "$romdir" mkUserDir "$biosdir" chown -R "$__user":"$__group" "$romdir" chown -R "$__user":"$__group" "$biosdir" chmod -R ug+rwX "$romdir" chmod -R ug+rwX "$biosdir" }