I noticed that some features has issues that was not allowing the scripts to run on the newer versions of Raspberry Pi OS (formerly Raspibian) because of some outdated commands, so I updated the obsolete commands to synchronize to the OS new versions, as on my own Raspberry. Here is some of the changes:
The original scrips are assuming that all users will set 'pi' as their user in the OS, as it was in the old Raspibian, but the new Raspberry Pi OS allows the user to change the username during the installation, as I did setting my own name as user. So, I changed all the 'pi' in the paths and conf files for the '$USER' environment variable. This solved almost all the problems.
In the SMB conf file, the script was forcing the user to login as 'pi' in the PS2. I commented these line, so it became easier to acess the network on the PS2, as well to authenticate as a guest.
The shared folder was being created on the OS root '/', which created a number of permissions issues and make hard to move the games ISOs to it, because ir required sudo permission and was only possible to move the ISOs using the terminal. So, I moved the shared folder to the HOME and changed it in the paths and conf files to.
To better organization, I made the setup.sh to create a folder named 'psx-pi-smbshare' in HOME with all necessary permissions and made the program execute only in these folder. By that, all the archives and folders created in the process stay in these folder and the HOME folder became more organized.
I noticed that some features has issues that was not allowing the scripts to run on the newer versions of Raspberry Pi OS (formerly Raspibian) because of some outdated commands, so I updated the obsolete commands to synchronize to the OS new versions, as on my own Raspberry. Here is some of the changes: