Skip to content

Commit

Permalink
abort running the reinstall-creality.sh if there is not backup directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pellcorp committed Apr 17, 2024
1 parent e755e58 commit 837d7f1
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 837d7f1

Please sign in to comment.