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

abort running the reinstall-creality.sh if there is not backup directory #82

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions reinstall-creality.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

BACKUP_DIR=/usr/data/guppyify-backup

# bail out of restoring if the backup directory does not exist
# should not kill guppyscreen if we cannot restore creality
if [ ! -d $BACKUP_DIR ]; then
echo "Backup directory does not exist!"
exit 1
fi

cp $BACKUP_DIR/S12boot_display /etc/init.d/S12boot_display
cp $BACKUP_DIR/S50dropbear /etc/init.d/S50dropbear
cp $BACKUP_DIR/S99start_app /etc/init.d/S99start_app
Expand Down
Loading