From cc418ec798786876a6a27343259d584cdd782535 Mon Sep 17 00:00:00 2001 From: foxy82 Date: Mon, 11 Apr 2022 17:04:56 +0100 Subject: [PATCH] Update readme and script ready for publishing --- README.md | 14 ++++++++++---- update.sh | 7 +------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4a69988..c1e70f6 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ sudo pip3 install pi_usb_gadget_controller ``` cd ~/pi-usb-gadget-controller -sudo python3 setup.py install +sudo pip3 install . ``` ### Running @@ -92,7 +92,7 @@ optional arguments: You can install the server as a service to run on start up: ``` cd ~/pi-usb-gadget-controller -sudo ./install_Service.sh +sudo ./install_service.sh ``` This will use the default options. To change the options edit ```~/pi-usb-gadget-controller/usb_gadget_controller.service``` and edit the ```ExecStart``` line then run ```./install_service.sh``` (first install) or ```./update_service.sh``` (updating) @@ -144,9 +144,15 @@ This is a work in progress so there might be times when updating is more complex ## Uninstall -The best bet is to just write a brand new OS onto the SD card however if you do need to remove have a look at ```uninstall_service.sh``` and ```uninstall_usb_gadget.sh``` which removes some files and guides you on other changes needed to remove this. +The best bet is to just write a brand new OS onto the SD card however if you do need to remove... + +``` +cd ~/pi-usb-gadget-controller +sudo ./uninstall_service.sh # Only if you installed this as a service +sudo ./uninstall_usb_gadget.sh # Follow the additional instructions +sudo pip uninstall pi_usb_gadget_controller +``` -You will also need to do a ```pip uninstall pi_usb_gadget_controller``` ## Roadmap diff --git a/update.sh b/update.sh index a0d3695..a6b6702 100755 --- a/update.sh +++ b/update.sh @@ -1,11 +1,6 @@ #!/bin/bash # Uncomment if you need to install requirements -# sudo pip3 install -r ./requirements.txt - - sudo service usb_gadget_controller stop - -sudo python3 setup.py install --force - +sudo pip install --no-deps --force-reinstall . sudo service usb_gadget_controller start