forked from isaacwisdom/RemarkableLamyEraser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request isaacwisdom#27 from isaacwisdom/v1-oneliner-install
V1 one liner install scripts!
- Loading branch information
Showing
3 changed files
with
54 additions
and
27 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/sh | ||
|
||
clear | ||
cd ~ | ||
|
||
systemctl stop LamyEraser.service 2&> /dev/null | ||
systemctl disable LamyEraser.service 2&> /dev/null | ||
|
||
echo "Downloading RemarkableLamyEraser Executable to /usr/sbin..." | ||
cd /usr/sbin | ||
rm -f RemarkableLamyEraser | ||
wget https://github.com/isaacwisdom/RemarkableLamyEraser/raw/v1/RemarkableLamyEraser/RemarkableLamyEraser | ||
echo "Adding execute privleges..." | ||
chmod +x RemarkableLamyEraser | ||
cd ~ | ||
|
||
|
||
read -p "Would you like RemarkableLamyEraser to start automatically on boot? [y/n]" -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
echo "Downloading service file to /lib/systemd/system..." | ||
cd /lib/systemd/system/ | ||
rm -f LamyEraser.service | ||
wget https://github.com/isaacwisdom/RemarkableLamyEraser/raw/v1/RemarkableLamyEraser/LamyEraser.service | ||
read -p "Would you like to edit your configuration now? [y/n]" -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
nano LamyEraser.service | ||
fi | ||
echo "Setting up RemarkableLamyEraser to start on boot..." | ||
systemctl daemon-reload | ||
systemctl enable LamyEraser.service | ||
echo "Starting RemarkableLamyEraser. Enjoy!" | ||
systemctl start LamyEraser.service | ||
else | ||
echo "You can start RemarkableLamyEraser at any time by running RemarkableLamyEraser" | ||
echo "Enjoy!" | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
systemctl stop LamyEraser.service | ||
systemctl disable LamyEraser.service | ||
echo "Deleting RemarkableLamyEraser executable" | ||
rm -f /usr/sbin/RemarkableLamyEraser | ||
echo "Deleting service file..." | ||
rm -f /lib/systemd/system/LamyEraser.service | ||
systemctl daemon-reload | ||
systemctl reset-failed | ||
echo "RemarkableLamyEraser uninstalled." |