From c0b9d77c2af97f46b8b38c24b0608470d7c64490 Mon Sep 17 00:00:00 2001 From: pr0fsmith <54153368+pr0fsmith@users.noreply.github.com> Date: Thu, 10 Mar 2022 23:30:07 -0500 Subject: [PATCH] Add files via upload --- INSTALL.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 INSTALL.sh diff --git a/INSTALL.sh b/INSTALL.sh new file mode 100644 index 0000000..5179e98 --- /dev/null +++ b/INSTALL.sh @@ -0,0 +1,39 @@ +#! /bin/bash +echo "**********************************************************************************" +echo "* This script makes it easier to change your rM screens. Please plug in your rM *" +echo "* now via usb as a script needs to be installed there as well. This script also *" +echo "* comes with a number of custom screens that will be copied to *" +echo "* ~/Pictures/rMscreens. Add additional png files there for this script to detect.*" +echo "**********************************************************************************" + +MY_DIR=$(dirname $0) #Used so that script will work no matter where the script folder is put. + +echo "Are you ready to continue? Make sure your tablet is connect via USB, is on and not in sleep mode." +select CHOICE in Yes Quit +do + case $CHOICE in + Yes) + break + ;; + Quit) + exit + ;; + esac +done +echo "Copying script 'changescrn' to your reMarkable tablet." +scp changescrn root@10.11.99.1:/opt/bin +echo "" +echo "Creating directory for screens" +if [ -d ~/Pictures/rMscreens ] +then + echo "~/Pictures/rMscreens exists. Copying screens..." + sudo cp -R screens/* ~/Pictures/rMscreens +else + sudo mkdir ~/Pictures/rMscreens + sudo cp -R $MY_DIR/screens/* ~/Pictures/rMscreens +fi +echo "" +echo "Copying rMscreen script to ~/.local/bin" +sudo cp rMscreen ~/.local/bin +echo "" +echo "All Done! run 'rMscreen' in terminal to launch" \ No newline at end of file