Created
September 18, 2021 21:39
-
-
Save addcninblue/cb5a437580e90c6d69125b77267de6d3 to your computer and use it in GitHub Desktop.
Script to downgrade Remarkable version. Please reference https://github.com/ddvk/remarkable-update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# SERVER=LINK_TO_YOUR_SERVER ./downgrade.sh | |
REMARKABLE_UPDATE="/usr/share/remarkable/update.conf" | |
REMARKABLE_UPDATE_BKUP="/tmp/update_bkup.conf" | |
# Copy Remarkable update file | |
cp $REMARKABLE_UPDATE $REMARKABLE_UPDATE_BKUP | |
# Add server line. | |
echo "SERVER=$SERVER" >> $REMARKABLE_UPDATE | |
# Start update engine. | |
systemctl start update-engine | |
# Trigger update | |
update_engine_client -check_for_update | |
# Tell user to check update status | |
echo -e "Check the status of the update with \n journalctl -u update-engine -f\n" | |
# Restore original server file | |
mv $REMARKABLE_UPDATE_BKUP $REMARKABLE_UPDATE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment