Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall #9

Open
danielkoellmann opened this issue May 11, 2018 · 18 comments · May be fixed by #76
Open

Uninstall #9

danielkoellmann opened this issue May 11, 2018 · 18 comments · May be fixed by #76

Comments

@danielkoellmann
Copy link

Hi,

I'm looking for a way to completely uninstall this script? I installed without noticing that I don't have the 2nd generation RetroFlag case with the shutdown switch on the PCB. Thanks in advance.

Kind regards, Daniel

@seamonkey420
Copy link

which version did you install? i can prob assist. i learned a lot about scripting in the last month after getting a proper script for OSMC and the new case :)

@danielkoellmann
Copy link
Author

Hi,

I didn't know that various versions exist, so I can't really tell.

I simply installed the script via "wget -O - "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/install.sh" | sudo bash".

I just wished there was a "remove.sh" included to revert it back to stock settings.

Thanks!

@Balveron
Copy link

Balveron commented Jun 16, 2018

Hi,
there is still need of some advice here how to uninstall the skript... after ive installed the skript my pi wont work properly. (it has lags)
Even if its not that Script causing those errors, some advice to uninstall it would be nice.

@derreck503
Copy link

derreck503 commented Aug 1, 2018

@Balveron @danielkoellmann

To uninstall follow these steps:

  1. ssh into your retropie or press f4 to get to the retropie terminal
  2. Type and run sudo apt-get ---purge remove python3-gpiozero
  3. Type and run cd /opt/RetroFlag
  4. Type and run sudo rm SafeShutdown.py
  5. Type and runcd /etc
  6. Type and run sudo nano rc.local
  7. Remove only the follow line of code: /opt/RetroFlag/SafeShutdown.py &
  8. Hold ctrl and press x and then type yes to save changes
  9. Reboot and your set!

@rene650
Copy link

rene650 commented Feb 10, 2019

Hi,
can you please tell me how to do this on Recalbox?

Kind regards, Rene

@waldo68
Copy link

waldo68 commented Jul 26, 2019

Would this work if I installed the GPi case script accidentally?

@rrrrrrkevin
Copy link

I just accidentally installed the GPi script on my MegaPi case. I also had the switch on the "off" position. The only thing the switch does is turn shutdown my MegaPi when I turn the switch to the "on" position. I tried just running the correct installation script and nothing changed.

@waldo68
Copy link

waldo68 commented Jul 30, 2019

I contacted the vendor I used for my nespi+ case. These are the instructions I received. Haven't had a chance to evaluate the result yet.

  1. sudo rm -rf /opt/RetroFlag
  2. sudo sed -i -e "s/^sudo python3.*//g" /etc/rc.local
  3. reboot

@lghtanddrk
Copy link

lghtanddrk commented Oct 28, 2019

@derreck503 @RetroFlag

"To uninstall follow these steps:

ssh into your retropie or press f4 to get to the retropie terminal
Type and run sudo apt-get ---purge remove python3-gpiozero
Type and run cd /opt/RetroFlag
Type and run sudo rm SafeShutdown.py
Type and runcd /etc
Type and run sudo nano rc.local
Remove only the follow line of code: /opt/RetroFlag/SafeShutdown.py &
Hold ctrl and press x and then type yes to save changes
Reboot and your set!"

I have a RetroFlag Super Nes case with the shutdown enabled. I am removing my pi and installing it in a cabinet. So this uninstall process will work for me too restoring it back to the way it was before the script was installed so that I can go back to the normal menu driven shutdown?

@lghtanddrk
Copy link

@waldo68 "I contacted the vendor I used for my nespi+ case. These are the instructions I received. Haven't had a chance to evaluate the result yet.

sudo rm -rf /opt/RetroFlag
sudo sed -i -e "s/^sudo python3.*//g" /etc/rc.local
reboot"

Did you ever try this to see if it works? Did it completely uninstall the RetroFlag script and restore it to the original shutdown settings?

@lghtanddrk
Copy link

@danielkoellmann Were you successful in removing the RetroFlag shutdown script and restoring it back to the original settings? If so, what method did you use?

@waldo68
Copy link

waldo68 commented Oct 28, 2019 via email

MPParsley added a commit to MPParsley/retroflag-picase that referenced this issue Dec 28, 2019
@MPParsley MPParsley linked a pull request Dec 28, 2019 that will close this issue
@crcerror
Copy link

crcerror commented Jan 3, 2020

I've created a uninstall script

For RetroPie
wget -O - "https://raw.githubusercontent.com/crcerror/retroflag-picase/master/uninstall_all.sh" | sudo bash

For RecalBox and BATOCERA
wget -O - "https://raw.githubusercontent.com/crcerror/retroflag-picase/master/uninstall_all.sh" | bash

It removes scripts, cleans autostart and disables uart

@yeeshkul
Copy link

How to uninstall it from RecalBox please?

@yeeshkul
Copy link

I found the answer - for Recalbox
Use PuTTy

  1. Make the files editable: mount -o remount, rw /
  2. Edit file etc/init.d/S99RetroFlag - remove the unwanted line
    nano etc/init.d/S99RetroFlag
  3. Delete script files from opt/RetroFlag
    rm /opt/RetroFlag/file_name

@mccorkled
Copy link

mccorkled commented Jul 4, 2022

I've created a uninstall script

For RetroPie wget -O - "https://raw.githubusercontent.com/crcerror/retroflag-picase/master/uninstall_all.sh" | sudo bash

For RecalBox and BATOCERA wget -O - "https://raw.githubusercontent.com/crcerror/retroflag-picase/master/uninstall_all.sh" | bash

It removes scripts, cleans autostart and disables uart

In RetroPie I get the following message:

 Try to delete dir: /opt/RetroFlag
/opt/RetroFlag: removed successful!

Try to remove autostart-feature
Autoremove failed!
Sorry

I’m not sure what the autostart feature is. Perhaps it’s not uninstalling it because it didn’t exist?

I installed your script after this and reset is still resetting the entire system so something must have gone wrong. Likely with that uninstall.

@crcerror
Copy link

crcerror commented Jul 16, 2022

Yes the message is thrown out if grep -q "^sudo python3 $SCRIPTDIR" "/etc/rc.local fails.
There are meanwhile 1000 methods to get these scripts running.

But if the remove of /opt/RetroFlag was successful then the script should not run at all.

Edit: fixed it, please try again

@mccorkled
Copy link

mccorkled commented Jul 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.